From: Ramana Raja Date: Mon, 5 May 2025 18:29:08 +0000 (-0400) Subject: tools/rbd/action/MirrorPool: remove dead branch X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=268966a364468c12b675c8bfae762931a3ea102d;p=ceph.git tools/rbd/action/MirrorPool: remove dead branch mirror_image_get_info() API doesn't fail with ENOENT when mirroring is disabled since commit c9c8852. So, no need to handle ENOENT error from mirror_image_get_info() API. Signed-off-by: Ramana Raja --- diff --git a/src/tools/rbd/action/MirrorPool.cc b/src/tools/rbd/action/MirrorPool.cc index b0678a38d1137..e35d3f1760da9 100644 --- a/src/tools/rbd/action/MirrorPool.cc +++ b/src/tools/rbd/action/MirrorPool.cc @@ -471,10 +471,7 @@ private: void handle_get_info(int r) { dout(20) << this << " " << __func__ << ": r=" << r << dendl; - if (r == -ENOENT) { - close_image(); - return; - } else if (r < 0) { + if (r < 0) { std::cerr << "rbd: failed to retrieve mirror image info for " << m_image_name << ": " << cpp_strerror(r) << std::endl; m_ret_val = r;