]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
os/FileStore: use _fgetattrs() for CLONE
authorSage Weil <sage@inktank.com>
Sat, 27 Oct 2012 22:06:20 +0000 (15:06 -0700)
committerSage Weil <sage@inktank.com>
Mon, 5 Nov 2012 08:13:52 +0000 (00:13 -0800)
We have the src fd.

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

index 9013e08fb94787198aa3aa40df04370c79a83f7e..0567be23b702bcff7e614c5cc23142bfa19e947f 100644 (file)
@@ -3003,7 +3003,7 @@ int FileStore::_clone(coll_t cid, const hobject_t& oldoid, const hobject_t& newo
 
   {
     map<string, bufferptr> aset;
-    r = _getattrs(cid, oldoid, aset);
+    r = _fgetattrs(o, aset, false);
     if (r < 0)
       goto out3;