]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
os/filestore: remove duplicated lfn_close to same fd
authorxie xingguo <xie.xingguo@zte.com.cn>
Sat, 20 Feb 2016 02:32:18 +0000 (10:32 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Tue, 15 Mar 2016 13:53:54 +0000 (21:53 +0800)
At present lfn_close is a noop, so duplicated call to lfn_close
does no harm and this patch only tries to tidy up.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/os/filestore/FileStore.cc

index c1a9ee8a6992cf41e83e49b4bb4e4717ca76c7a5..fee71bf5b753c210b4d408bf7c773c9219774c8a 100644 (file)
@@ -4119,7 +4119,6 @@ int FileStore::getattrs(const coll_t& _cid, const ghobject_t& oid, map<string,bu
   if (r < 0) {
     goto out;
   }
-  lfn_close(fd);
 
   if (!spill_out) {
     dout(10) << __func__ << " no xattr exists in object_map r = " << r << dendl;