mon/OSDMonitor: only log PG merge backoff for crimson pools

This warning was added as part of Crimson pg merging and is supposed to be
meant just for Crimson pools. Correcting the if condition to reflect the same.

Fixes: https://tracker.ceph.com/issues/77459
Signed-off-by: Aishwarya Mathuria <amathuri@redhat.com>
This commit is contained in:
Aishwarya Mathuria 2026-06-17 16:55:56 +05:30
parent 3c5295cccb
commit 34cf71d143

View File

@ -4105,7 +4105,7 @@ bool OSDMonitor::prepare_pg_ready_to_merge(MonOpRequestRef op)
p.last_change = pending_inc.epoch;
} else {
// back off the merge attempt!
if (!m->ready && !p.has_flag(pg_pool_t::FLAG_CRIMSON)) {
if (!m->ready && p.has_flag(pg_pool_t::FLAG_CRIMSON)) {
mon.clog->warn() << "osd." << m->get_orig_source().num()
<< " reported pg " << m->pgid
<< " not ready to merge; backing off pg_num decrease"