From fc36eb6b99b3174c4ef302f4a32f757121b2bdfd Mon Sep 17 00:00:00 2001 From: Yehuda Sadeh Date: Fri, 29 Apr 2011 14:08:57 -0700 Subject: [PATCH] filestore: fiemap should close the fd --- src/os/FileStore.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/os/FileStore.cc b/src/os/FileStore.cc index 615ae78549383..81bc91da07f81 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); -- 2.39.5