From: Yehuda Sadeh Date: Fri, 29 Apr 2011 21:08:57 +0000 (-0700) Subject: filestore: fiemap should close the fd X-Git-Tag: v0.27.1~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=fc36eb6b99b3174c4ef302f4a32f757121b2bdfd;p=ceph.git filestore: fiemap should close the fd --- diff --git a/src/os/FileStore.cc b/src/os/FileStore.cc index 615ae785493..81bc91da07f 100644 --- a/src/os/FileStore.cc +++ b/src/os/FileStore.cc @@ -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);