From: Li Wang
Date: Fri, 16 Dec 2016 06:40:23 +0000 (+0000)
Subject: JournalingObjectStore: remove unneeded variable
X-Git-Tag: v12.0.0~341^2~1
X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=91b6d1da24d85db15bebc629357e8447a8200b08;p=ceph.git
JournalingObjectStore: remove unneeded variable
Signed-off-by: Li Wang
---
diff --git a/src/os/filestore/JournalingObjectStore.cc b/src/os/filestore/JournalingObjectStore.cc
index 8099434f35cb..467991efd2b6 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;
}