From edd63bf7e6004938e88de4b6ac2eb86ad00de834 Mon Sep 17 00:00:00 2001 From: Alex Wu Date: Sun, 28 Mar 2021 22:09:50 -0400 Subject: [PATCH] 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 --- src/crush/CrushLocation.cc | 1 - 1 file changed, 1 deletion(-) diff --git a/src/crush/CrushLocation.cc b/src/crush/CrushLocation.cc index 2032bf71c98fe..a3542cec67057 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; } -- 2.39.5