]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osdmap: fix off-by-one in build_simple_from_conf
authorSage Weil <sage@newdream.net>
Wed, 2 Nov 2011 04:11:11 +0000 (21:11 -0700)
committerSage Weil <sage@newdream.net>
Wed, 2 Nov 2011 04:14:30 +0000 (21:14 -0700)
commit0bcdd4f3b2a2dba405639122b84f7aad978f347b
tree23f6121af7c90ff6baee61a47342e445f80a3c07
parentb66847ea78390a4f054246f8baf98814749f5245
osdmap: fix off-by-one in build_simple_from_conf

maxosd is the highest osd id.  set_max_osd(that + 1), since that is
setting the array size.  This fixes references off the end of that
array.

Signed-off-by: Sage Weil <sage@newdream.net>
src/osd/OSDMap.cc