From: Samuel Just Date: Thu, 21 Feb 2013 21:28:26 +0000 (-0800) Subject: FileStore::_clone: use _fsetattrs rather than _setattrs X-Git-Tag: v0.59~152^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=81bd996428f93f1b753bf392058396bdf582cff7;p=ceph.git FileStore::_clone: use _fsetattrs rather than _setattrs 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 --- diff --git a/src/os/FileStore.cc b/src/os/FileStore.cc index 908f48abe6c..7bb7533ae2d 100644 --- a/src/os/FileStore.cc +++ b/src/os/FileStore.cc @@ -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; }