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:47:43 -0700 |
commit | 5af48dc7c7e3a0d7f7bc22af58831d58d165e657 (patch) | |
tree | fc2a43bf0a1679c30fd1ba28f6cca9f7dedd78a4 | |
parent | 17aa2d6d16c77028bae1d2a77903cdfd81efa096 (diff) | |
download | ceph-5af48dc7c7e3a0d7f7bc22af58831d58d165e657.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>
(cherry picked from commit c562b72e703f671127d0ea2173f6a6907c825cd1)
-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 c764d6bef2a..5bd581f6254 100644 --- a/src/os/FileStore.cc +++ b/src/os/FileStore.cc @@ -2217,6 +2217,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; |