From: Sage Weil Date: Tue, 26 Feb 2019 14:45:28 +0000 (-0600) Subject: osd/PG: include tag in get/put debug lines X-Git-Tag: v14.1.1~108^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=dbf98cbd62e5b6d9df212078d0f3fa7f6ae97d92;p=ceph.git osd/PG: include tag in get/put debug lines Signed-off-by: Sage Weil --- diff --git a/src/osd/PG.cc b/src/osd/PG.cc index da61168cec57..d9a772a18920 100644 --- a/src/osd/PG.cc +++ b/src/osd/PG.cc @@ -153,7 +153,8 @@ void PGStateHistory::dump(Formatter* f) const { void PG::get(const char* tag) { int after = ++ref; - lgeneric_subdout(cct, refs, 1) << "PG::get " << this << " " + lgeneric_subdout(cct, refs, 5) << "PG::get " << this << " " + << "tag " << (tag ? tag : "(none") << " " << (after - 1) << " -> " << after << dendl; #ifdef PG_DEBUG_REFS std::lock_guard l(_ref_id_lock); @@ -175,7 +176,8 @@ void PG::put(const char* tag) } #endif int after = --ref; - lgeneric_subdout(cct, refs, 1) << "PG::put " << this << " " + lgeneric_subdout(cct, refs, 5) << "PG::put " << this << " " + << "tag " << (tag ? tag : "(none") << " " << (after + 1) << " -> " << after << dendl; if (after == 0) delete this;