]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
filestore: fiemap should close the fd
authorYehuda Sadeh <yehuda@hq.newdream.net>
Fri, 29 Apr 2011 21:08:57 +0000 (14:08 -0700)
committerYehuda Sadeh <yehuda@hq.newdream.net>
Fri, 29 Apr 2011 21:10:53 +0000 (14:10 -0700)
src/os/FileStore.cc

index 615ae78549383c629f20d86ad3ce4f1bfa3ad934..81bc91da07f81b35eb4e41e6ea02dd148e585d68 100644 (file)
@@ -2263,6 +2263,8 @@ int FileStore::fiemap(coll_t cid, const sobject_t& oid,
   }
 
 done:
+  if (fd >= 0)
+    TEMP_FAILURE_RETRY(::close(fd));
   if (r >= 0)
     ::encode(extmap, bl);