]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crush/CrushLocation: do not print logging message in constructor 40750/head
authorAlex Wu <notmycupoftea@163.com>
Mon, 29 Mar 2021 02:09:50 +0000 (22:09 -0400)
committerNathan Cutler <ncutler@suse.com>
Sat, 10 Apr 2021 16:27:33 +0000 (18:27 +0200)
do not use logging facility in constructor, as CephContext::_log is set
after CephContext::crush_location is created in constructor of CephContext.

Fixes: https://tracker.ceph.com/issues/50047
Signed-off-by: Alex Wu <notmycupoftea@163.com>
(cherry picked from commit 68812a2a4f63e9fd7c33f14b7a00c54a6a21128e)

Conflicts:
src/crush/CrushLocation.cc
- trivial resolution

src/crush/CrushLocation.cc

index 2032bf71c98fe316c5e54b8a57f484310b4f49a9..a3542cec67057c72b43ce9761226a4c950fa355a 100644 (file)
@@ -119,6 +119,5 @@ int CrushLocation::init_on_startup()
   loc.clear();
   loc.insert(make_pair<std::string,std::string>("host", hostname));
   loc.insert(make_pair<std::string,std::string>("root", "default"));
-  lgeneric_dout(cct, 10) << "crush_location is (default) " << loc << dendl;
   return 0;
 }