From 91b6d1da24d85db15bebc629357e8447a8200b08 Mon Sep 17 00:00:00 2001 From: Li Wang Date: Fri, 16 Dec 2016 06:40:23 +0000 Subject: [PATCH] JournalingObjectStore: remove unneeded variable Signed-off-by: Li Wang --- src/os/filestore/JournalingObjectStore.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/os/filestore/JournalingObjectStore.cc b/src/os/filestore/JournalingObjectStore.cc index 8099434f35c..467991efd2b 100644 --- a/src/os/filestore/JournalingObjectStore.cc +++ b/src/os/filestore/JournalingObjectStore.cc @@ -186,7 +186,6 @@ bool JournalingObjectStore::ApplyManager::commit_start() { bool ret = false; - uint64_t _committing_seq = 0; { Mutex::Locker l(apply_lock); dout(10) << "commit_start max_applied_seq " << max_applied_seq @@ -208,7 +207,7 @@ bool JournalingObjectStore::ApplyManager::commit_start() goto out; } - _committing_seq = committing_seq = max_applied_seq; + committing_seq = max_applied_seq; dout(10) << "commit_start committing " << committing_seq << ", still blocked" << dendl; @@ -217,7 +216,7 @@ bool JournalingObjectStore::ApplyManager::commit_start() ret = true; if (journal) - journal->commit_start(_committing_seq); // tell the journal too + journal->commit_start(committing_seq); // tell the journal too out: return ret; } -- 2.47.3