Fix RestoreLoader loadedLogBytes counter
This commit is contained in:
parent
47c35a7a69
commit
fec3de9b7b
|
@ -802,7 +802,7 @@ void _parseSerializedMutation(KeyRangeMap<Version>* pRangeVersions,
|
|||
}
|
||||
}
|
||||
|
||||
cc->sampledLogBytes += mutation.totalSize();
|
||||
cc->loadedLogBytes += mutation.totalSize();
|
||||
|
||||
TraceEvent(SevFRMutationInfo, "FastRestoreDecodeLogFile")
|
||||
.detail("CommitVersion", commitVersion)
|
||||
|
@ -815,6 +815,7 @@ void _parseSerializedMutation(KeyRangeMap<Version>* pRangeVersions,
|
|||
|
||||
// Sampling (FASTRESTORE_SAMPLING_PERCENT%) data
|
||||
if (deterministicRandom()->random01() * 100 < SERVER_KNOBS->FASTRESTORE_SAMPLING_PERCENT) {
|
||||
cc->sampledLogBytes += mutation.totalSize();
|
||||
samples.push_back_deep(samples.arena(), mutation);
|
||||
}
|
||||
ASSERT_WE_THINK(kLen >= 0 && kLen < val.size());
|
||||
|
@ -943,7 +944,7 @@ ACTOR static Future<Void> _parseLogFileToMutationsOnLoader(NotifiedVersion* pPro
|
|||
|
||||
if (pProcessedFileOffset->get() == asset.offset) {
|
||||
for (const KeyValueRef& kv : data) {
|
||||
// Concatenate the backuped param1 and param2 (KV) at the same version.
|
||||
// Concatenate the backup param1 and param2 (KV) at the same version.
|
||||
concatenateBackupMutationForLogFile(pMutationMap, kv.key, kv.value, asset);
|
||||
}
|
||||
pProcessedFileOffset->set(asset.offset + asset.len);
|
||||
|
|
Loading…
Reference in New Issue