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:
Samuel Just 2013-07-26 13:42:27 -07:00
parent 2a1aea7c7f
commit c562b72e70

View File

@ -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;