From: Alex Wu Date: Mon, 29 Mar 2021 02:09:50 +0000 (-0400) Subject: crush/CrushLocation: do not print logging message in constructor X-Git-Tag: v14.2.22~25^2~14^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F40750%2Fhead;p=ceph.git crush/CrushLocation: do not print logging message in constructor 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 (cherry picked from commit 68812a2a4f63e9fd7c33f14b7a00c54a6a21128e) Conflicts: src/crush/CrushLocation.cc - trivial resolution --- diff --git a/src/crush/CrushLocation.cc b/src/crush/CrushLocation.cc index 2032bf71c98f..a3542cec6705 100644 --- a/src/crush/CrushLocation.cc +++ b/src/crush/CrushLocation.cc @@ -119,6 +119,5 @@ int CrushLocation::init_on_startup() loc.clear(); loc.insert(make_pair("host", hostname)); loc.insert(make_pair("root", "default")); - lgeneric_dout(cct, 10) << "crush_location is (default) " << loc << dendl; return 0; }