From 619d8048660a30672dd804caef38dac6aaa24ad2 Mon Sep 17 00:00:00 2001 From: Ning Yao Date: Thu, 5 Nov 2015 17:49:31 +0800 Subject: [PATCH] FileStore::_check_replay_guard avoids double check on replaying and can_checkpoint() Already checked in _check_replay_guard, avoid double check in the inner function _check_global_replay_guard Signed-off-by: Ning Yao --- src/os/FileStore.cc | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/os/FileStore.cc b/src/os/FileStore.cc index 16917c23880..aa57398f5ad 100644 --- a/src/os/FileStore.cc +++ b/src/os/FileStore.cc @@ -2126,9 +2126,6 @@ void FileStore::_set_global_replay_guard(coll_t cid, int FileStore::_check_global_replay_guard(coll_t cid, const SequencerPosition& spos) { - if (!replaying || backend->can_checkpoint()) - return 1; - char fn[PATH_MAX]; get_cdir(cid, fn, sizeof(fn)); int fd = ::open(fn, O_RDONLY); -- 2.47.3