]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
filestore: return error from CLONE
authorSage Weil <sage@newdream.net>
Sun, 12 Feb 2012 05:14:53 +0000 (21:14 -0800)
committerSage Weil <sage@newdream.net>
Sun, 12 Feb 2012 05:14:53 +0000 (21:14 -0800)
Aie!

Signed-off-by: Sage Weil <sage@newdream.net>
src/os/FileStore.cc

index dda2280b385537e347ccc39d96e5c9da6d4b1a78..aa66517926d5d2b840dc7f0cc0650caac29913e9 100644 (file)
@@ -2745,7 +2745,7 @@ int FileStore::_clone(coll_t cid, const hobject_t& oldoid, const hobject_t& newo
   TEMP_FAILURE_RETRY(::close(o));
  out2:
   dout(10) << "clone " << cid << "/" << oldoid << " -> " << cid << "/" << newoid << " = " << r << dendl;
-  return 0;
+  return r;
 }
 
 int FileStore::_do_clone_range(int from, int to, uint64_t srcoff, uint64_t len, uint64_t dstoff)