]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
LogMonitor: set no_reply for forward MLog commands 62212/head
authorNitzan Mordechai <nmordech@redhat.com>
Thu, 20 Feb 2025 07:37:45 +0000 (07:37 +0000)
committerNitzan Mordechai <nmordech@redhat.com>
Fri, 21 Mar 2025 08:49:52 +0000 (08:49 +0000)
On streach mod clusters we can see slow ops when
removing and adding osds with --zap --force when osds
connected to peon monitor and forwarding the MLog to leader.
the no_reply is set only when we are connected to the leader,
this fix will add also the other option - so no_reply set anyway.

Fixes: https://tracker.ceph.com/issues/54489
Signed-off-by: Nitzan Mordechai <nmordech@redhat.com>
(cherry picked from commit 56cb53db96380c917f4192c31cbdd0f0f3ef1fe9)

src/mon/LogMonitor.cc

index 654ee4c691042d38e22307885ec044e22dbb39de..c671ce8fb40774cdafc79531c9b995bff18e9e84 100644 (file)
@@ -711,11 +711,9 @@ bool LogMonitor::preprocess_log(MonOpRequestRef op)
     goto done;
   }
 
-  return false;
-
- done:
-  mon.no_reply(op);
-  return true;
+  done:
+    mon.no_reply(op);
+    return (!num_new);
 }
 
 struct LogMonitor::C_Log : public C_MonOp {