]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
tools/rbd/action/MirrorPool: remove dead branch
authorRamana Raja <rraja@redhat.com>
Mon, 5 May 2025 18:29:08 +0000 (14:29 -0400)
committerRamana Raja <rraja@redhat.com>
Wed, 4 Jun 2025 16:03:22 +0000 (12:03 -0400)
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 <rraja@redhat.com>
src/tools/rbd/action/MirrorPool.cc

index b0678a38d113763c8f05c7b0efbde46f81cfb152..e35d3f1760da938f9df4a9b1b335a5474088491a 100644 (file)
@@ -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;