diff options
author | Samuel Just <sam.just@inktank.com> | 2013-07-26 13:42:27 -0700 |
---|---|---|
committer | Samuel Just <sam.just@inktank.com> | 2013-07-26 13:46:26 -0700 |
commit | c562b72e703f671127d0ea2173f6a6907c825cd1 (patch) | |
tree | 99ba723940482a0865821009fbf93335dacfa8c2 | |
parent | 2a1aea7c7f0a8065a8e06c7ea04359e3fe37e8f5 (diff) | |
download | ceph-c562b72e703f671127d0ea2173f6a6907c825cd1.tar.gz |
FileStore: fix fd leak in _check_global_replay_guard
Bug introduced in f3f92fe21061e21c8b259df5ef283a61782a44db.
Fixes: #5766
Backport: cuttlefish
Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
-rw-r--r-- | src/os/FileStore.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/os/FileStore.cc b/src/os/FileStore.cc index 4e4847e6917..28f81b7547f 100644 --- a/src/os/FileStore.cc +++ b/src/os/FileStore.cc @@ -2243,6 +2243,7 @@ int FileStore::_check_global_replay_guard(coll_t cid, if (r < 0) { dout(20) << __func__ << " no xattr" << dendl; assert(!m_filestore_fail_eio || r != -EIO); + TEMP_FAILURE_RETRY(::close(fd)); return 1; // no xattr } bufferlist bl; |