]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osdmap: reference the correct value in debug output
authorGreg Farnum <gfarnum@redhat.com>
Wed, 14 Jun 2017 18:29:14 +0000 (11:29 -0700)
committerSage Weil <sage@redhat.com>
Wed, 28 Jun 2017 14:52:49 +0000 (10:52 -0400)
Looks like we've been printing out the (possibly-still-default-initialized)
num_osd member variable instead of the given nosd value! Luckily
I don't see any other misuse and we fill out

Signed-off-by: Greg Farnum <gfarnum@redhat.com>
src/osd/OSDMap.cc

index c37ed79d00710fbed0607b0588d919821910cd8f..eaf884673978d465316695e7eb326437c488c2ab 100644 (file)
@@ -3230,7 +3230,7 @@ bool OSDMap::crush_ruleset_in_use(int ruleset) const
 int OSDMap::build_simple(CephContext *cct, epoch_t e, uuid_d &fsid,
                          int nosd, int pg_bits, int pgp_bits)
 {
-  ldout(cct, 10) << "build_simple on " << num_osd
+  ldout(cct, 10) << "build_simple on " << nosd
                 << " osds" << dendl;
   epoch = e;
   set_fsid(fsid);