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>
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;