Skip to content

Commit 268966a

Browse files
committed
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 <[email protected]>
1 parent c71d7ee commit 268966a

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/tools/rbd/action/MirrorPool.cc

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -471,10 +471,7 @@ class ImageRequestBase {
471471
void handle_get_info(int r) {
472472
dout(20) << this << " " << __func__ << ": r=" << r << dendl;
473473

474-
if (r == -ENOENT) {
475-
close_image();
476-
return;
477-
} else if (r < 0) {
474+
if (r < 0) {
478475
std::cerr << "rbd: failed to retrieve mirror image info for "
479476
<< m_image_name << ": " << cpp_strerror(r) << std::endl;
480477
m_ret_val = r;

0 commit comments

Comments
 (0)