From: Greg Farnum Date: Wed, 14 Jun 2017 18:29:14 +0000 (-0700) Subject: osdmap: reference the correct value in debug output X-Git-Tag: ses5-milestone8~1^2~21^2~10 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=d0006821de4a4856f5ca38f5a11d2e7075da1d79;p=ceph.git osdmap: reference the correct value in debug output 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 --- diff --git a/src/osd/OSDMap.cc b/src/osd/OSDMap.cc index c37ed79d0071..eaf884673978 100644 --- a/src/osd/OSDMap.cc +++ b/src/osd/OSDMap.cc @@ -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);