]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
librbd/deep_copy: don't ignore ENOENT when forced to read whole object 23839/head
authorMykola Golub <mgolub@suse.com>
Fri, 31 Aug 2018 11:35:22 +0000 (14:35 +0300)
committerMykola Golub <mgolub@suse.com>
Fri, 31 Aug 2018 11:45:20 +0000 (14:45 +0300)
Signed-off-by: Mykola Golub <mgolub@suse.com>
src/librbd/deep_copy/ObjectCopyRequest.cc

index 9bbd21b4eaf327906e6f78bd6c76fb4473e4fb74..b363b57c8f3fd5fc849236465aa14d9a47049fe5 100644 (file)
@@ -196,12 +196,6 @@ template <typename I>
 void ObjectCopyRequest<I>::handle_read_object(int r) {
   ldout(m_cct, 20) << "r=" << r << dendl;
 
-  if (r == -ENOENT && m_read_whole_object) {
-    ldout(m_cct, 5) << "object missing when forced to read whole object"
-                    << dendl;
-    r = 0;
-  }
-
   if (r == -ENOENT) {
     m_retry_snap_set = m_snap_set;
     m_retry_missing_read = true;