Skip to content

Commit

Permalink
Fix committed tick adjustments (#16456)
Browse files Browse the repository at this point in the history
* wip

* clang-format
  • Loading branch information
Dronplane committed Jun 27, 2022
1 parent dfc39b9 commit 8e481b0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions arangod/IResearch/IResearchDataStore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -732,8 +732,6 @@ Result IResearchDataStore::commitUnsafeImpl(bool wait, CommitResult* code) {
auto& impl = basics::downCast<IResearchFlushSubscription>(*subscription);

try {
auto const lastTickBeforeCommit = _engine->currentTick();

std::unique_lock commitLock{_commitMutex, std::try_to_lock};
if (!commitLock.owns_lock()) {
if (!wait) {
Expand All @@ -751,7 +749,7 @@ Result IResearchDataStore::commitUnsafeImpl(bool wait, CommitResult* code) {

commitLock.lock();
}

auto const lastTickBeforeCommit = _engine->currentTick();
auto const lastCommittedTick = _lastCommittedTick;

try {
Expand Down

0 comments on commit 8e481b0

Please sign in to comment.