From: Shraddha Agrawal Date: Tue, 9 Dec 2025 14:04:55 +0000 (+0530) Subject: PeeringState::needs_recovery(): log first missing item X-Git-Tag: testing/wip-vshankar-testing-20260213.071255~4^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=3029f0fcce99c93a9973f2b9426fc58ee58be6af;p=ceph-ci.git PeeringState::needs_recovery(): log first missing item Signed-off-by: Shraddha Agrawal --- diff --git a/src/osd/PeeringState.cc b/src/osd/PeeringState.cc index 04c47ae614e..3ca8c030687 100644 --- a/src/osd/PeeringState.cc +++ b/src/osd/PeeringState.cc @@ -30,6 +30,7 @@ using std::hex; using std::make_pair; using std::map; using std::ostream; +using std::ostringstream; using std::pair; using std::set; using std::string; @@ -1528,8 +1529,18 @@ bool PeeringState::needs_recovery() const continue; } if (pm->second.num_missing()) { - psdout(10) << "osd." << peer << " has " - << pm->second.num_missing() << " missing" << dendl; + std::ostringstream ss; + ss << "osd." << peer << " has " + << pm->second.num_missing() << " missing"; + + const auto &items = pm->second.get_items(); + if (!items.empty()) { + const auto &first = *items.begin(); + const hobject_t &oid = first.first; + ss << ", first missing oid=" << oid; + } + + psdout(10) << ss.str() << dendl; return true; } }