os/FileStore: use _fgetattrs() for CLONE

We have the src fd.

Signed-off-by: Sage Weil <sage@inktank.com>
This commit is contained in:
Sage Weil 2012-10-27 15:06:20 -07:00
parent 769f47321d
commit ad5ac17f0b

View 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;