]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crush/CrushLocation: do not print logging message in constructor 40791/head
authorAlex Wu <notmycupoftea@163.com>
Mon, 29 Mar 2021 02:09:50 +0000 (22:09 -0400)
committerNathan Cutler <ncutler@suse.com>
Sun, 11 Apr 2021 10:13:35 +0000 (12:13 +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)

src/crush/CrushLocation.cc

index c53769aa1bd0056f070d8a41ff4508df2230bf9f..05b36d810e7c908b68cf5b9c66add9ac6109bc04 100644 (file)
@@ -122,7 +122,6 @@ int CrushLocation::init_on_startup()
   loc.clear();
   loc.insert(std::make_pair<std::string,std::string>("host", hostname));
   loc.insert(std::make_pair<std::string,std::string>("root", "default"));
-  lgeneric_dout(cct, 10) << "crush_location is (default) " << loc << dendl;
   return 0;
 }