Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
MBkkt committed Nov 25, 2021
1 parent 89beae1 commit 218f5b2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions arangod/IResearch/IResearchLink.cpp
Expand Up @@ -697,9 +697,9 @@ void IResearchLink::afterTruncate(TRI_voc_tick_t tick, transaction::Methods* trx
std::chrono::steady_clock::now() - begin)
.count();
if (!ok && _numFailedCommits != nullptr) {
_numFailedCleanups->fetch_add(1, std::memory_order_relaxed);
_numFailedCommits->fetch_add(1, std::memory_order_relaxed);
} else if (ok && _avgCommitTimeMs != nullptr) {
_avgCommitTimeMs->store(computeAvg(_cleanupTimeNum, timeMs), std::memory_order_relaxed);
_avgCommitTimeMs->store(computeAvg(_commitTimeNum, timeMs), std::memory_order_relaxed);
}
});

Expand Down Expand Up @@ -857,9 +857,9 @@ IResearchLink::UnsafeOpResult IResearchLink::commitUnsafe(bool wait, CommitResul
.count();

if (bool ok = result.ok(); !ok && _numFailedCommits != nullptr) {
_numFailedCleanups->fetch_add(1, std::memory_order_relaxed);
_numFailedCommits->fetch_add(1, std::memory_order_relaxed);
} else if (ok && *code == CommitResult::DONE && _avgCommitTimeMs != nullptr) {
_avgCommitTimeMs->store(computeAvg(_cleanupTimeNum, timeMs), std::memory_order_relaxed);
_avgCommitTimeMs->store(computeAvg(_commitTimeNum, timeMs), std::memory_order_relaxed);
}
return {result, timeMs};
}
Expand Down

0 comments on commit 218f5b2

Please sign in to comment.