From: Patrick Donnelly Date: Tue, 18 Feb 2025 18:48:39 +0000 (-0500) Subject: tools/cephfs_mirror: do not process maps with fast dispatch X-Git-Tag: v20.0.0^2~5 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=3b79bdbee04c270c227be3dd1cb6dfe392646f8d;p=ceph.git tools/cephfs_mirror: do not process maps with fast dispatch This acquires a lock which is a no-no in the messenger. Signed-off-by: Patrick Donnelly --- diff --git a/src/tools/cephfs_mirror/ClusterWatcher.cc b/src/tools/cephfs_mirror/ClusterWatcher.cc index 84c34d4683ad8..8d53a1c725412 100644 --- a/src/tools/cephfs_mirror/ClusterWatcher.cc +++ b/src/tools/cephfs_mirror/ClusterWatcher.cc @@ -31,15 +31,6 @@ ClusterWatcher::ClusterWatcher(CephContext *cct, MonClient *monc, ServiceDaemon ClusterWatcher::~ClusterWatcher() { } -bool ClusterWatcher::ms_can_fast_dispatch2(const cref_t &m) const { - return m->get_type() == CEPH_MSG_FS_MAP; -} - -void ClusterWatcher::ms_fast_dispatch2(const ref_t &m) { - bool handled = ms_dispatch2(m); - ceph_assert(handled); -} - bool ClusterWatcher::ms_dispatch2(const ref_t &m) { if (m->get_type() == CEPH_MSG_FS_MAP) { if (m->get_connection()->get_peer_type() == CEPH_ENTITY_TYPE_MON) { diff --git a/src/tools/cephfs_mirror/ClusterWatcher.h b/src/tools/cephfs_mirror/ClusterWatcher.h index a418898f555ef..312aeccd63c4e 100644 --- a/src/tools/cephfs_mirror/ClusterWatcher.h +++ b/src/tools/cephfs_mirror/ClusterWatcher.h @@ -38,11 +38,6 @@ public: Listener &listener); ~ClusterWatcher(); - bool ms_can_fast_dispatch_any() const override { - return true; - } - bool ms_can_fast_dispatch2(const cref_t &m) const override; - void ms_fast_dispatch2(const ref_t &m) override; bool ms_dispatch2(const ref_t &m) override; void ms_handle_connect(Connection *c) override {