]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
FileStore::_clone: use _fsetattrs rather than _setattrs
authorSamuel Just <sam.just@inktank.com>
Thu, 21 Feb 2013 21:28:26 +0000 (13:28 -0800)
committerSamuel Just <sam.just@inktank.com>
Thu, 21 Feb 2013 21:28:26 +0000 (13:28 -0800)
The omap portion of the clone happened above in DBObjectMap::clone.
Only the fs stored attrs need to be explicitely copied.

Signed-off-by: Samuel Just <sam.just@inktank.com>
src/os/FileStore.cc

index 908f48abe6cad754dcfecb619d7ff24ee9332eb9..7bb7533ae2d24465d92b1e0914e1e53f1e2c0315 100644 (file)
@@ -3013,7 +3013,7 @@ int FileStore::_clone(coll_t cid, const hobject_t& oldoid, const hobject_t& newo
     if (r < 0)
       goto out3;
 
-    r = _setattrs(cid, newoid, aset, spos);
+    r = _fsetattrs(n, aset);
     if (r < 0)
       goto out3;
   }