From: Mykola Golub Date: Fri, 25 Dec 2020 09:28:37 +0000 (+0000) Subject: rbd-mirror: remove dead code X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=09bd2b8a1281a8cfbf085236bea0091c28f6c5ca;p=ceph.git rbd-mirror: remove dead code Signed-off-by: Mykola Golub Signed-off-by: Prasanna Kumar Kalever --- diff --git a/src/tools/rbd_mirror/PoolWatcher.cc b/src/tools/rbd_mirror/PoolWatcher.cc index deab4f20ad60d..1315124057988 100644 --- a/src/tools/rbd_mirror/PoolWatcher.cc +++ b/src/tools/rbd_mirror/PoolWatcher.cc @@ -423,16 +423,6 @@ void PoolWatcher::notify_listener() { std::string mirror_uuid; ImageIds added_image_ids; ImageIds removed_image_ids; - { - std::lock_guard locker{m_lock}; - ceph_assert(m_notify_listener_in_progress); - } - - if (!removed_image_ids.empty()) { - m_listener.handle_update(mirror_uuid, {}, std::move(removed_image_ids)); - removed_image_ids.clear(); - } - { std::lock_guard locker{m_lock}; ceph_assert(m_notify_listener_in_progress);