FastRestore:Applier:Count appliedTxns

This commit is contained in:
Meng Xu 2020-02-10 17:13:20 -08:00
parent 0c5997ca2d
commit 325bd52939
1 changed files with 2 additions and 1 deletions

View File

@ -415,8 +415,9 @@ ACTOR Future<Void> applyToDB(UID applierID, int64_t batchIndex, Reference<Applie
wait(tr->commit()); wait(tr->commit());
// Update status counter appliedBytes, appliedMutations, atomicOps // Update status counter appliedBytes, appliedMutations, atomicOps
batchData->counters.appliedBytes += progress.txnBytes; batchData->counters.appliedBytes += progress.txnBytes;
batchData->counters.appliedTxns += progress.txnMutations; batchData->counters.appliedMutations += progress.txnMutations;
batchData->counters.appliedAtomicOps += progress.numAtomicOps; batchData->counters.appliedAtomicOps += progress.numAtomicOps;
batchData->counters.appliedTxns += 1;
} }
if (progress.isDone()) { // Are all mutations processed? if (progress.isDone()) { // Are all mutations processed?