mirror of
https://github.com/ceph/ceph
synced 2025-03-05 15:58:41 +00:00
FileStore: fix fd leak in _check_global_replay_guard
Bug introduced in f3f92fe210
.
Fixes: #5766
Backport: cuttlefish
Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
This commit is contained in:
parent
2a1aea7c7f
commit
c562b72e70
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user