]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/OSDMonitor: only log PG merge backoff for crimson pools 69544/head
authorAishwarya Mathuria <amathuri@redhat.com>
Wed, 17 Jun 2026 11:25:56 +0000 (16:55 +0530)
committerAishwarya Mathuria <amathuri@redhat.com>
Wed, 17 Jun 2026 11:25:56 +0000 (16:55 +0530)
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>
src/mon/OSDMonitor.cc

index 8121ea2523cdb4b0d2aa65f6a7f2f793e6d73381..e997b9d205525d6b422117ec88211c91ab844093 100644 (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"