Skip to content

Commit 47bb038

Browse files
committed
update
1 parent 0e070a1 commit 47bb038

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

fdbclient/BackupAgentBase.actor.cpp

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -643,10 +643,11 @@ struct RestoreMetrics {
643643
return;
644644
}
645645
if (!update) {
646-
TraceEvent("RestoreMetricsForEmptyTask", logId);
646+
TraceEvent("RestoreMetricsForEmptyTask", logId).suppressFor(5.0);
647647
return;
648648
}
649649
TraceEvent("RestoreMetrics", logId)
650+
.suppressFor(5.0)
650651
.setMaxEventLength(-1)
651652
.setMaxFieldLength(-1)
652653
.detail("TotalBytes", totalBytes)
@@ -1574,7 +1575,12 @@ ACTOR Future<Void> applyMutations(Database cx,
15741575
.detail("PrepareTime", kvMutationLogToTransactionsBeginTime - loopBeginTime)
15751576
.detail("KvMutationLogToTransactionsTime",
15761577
coalesceKeyVersionCacheBeginTime - kvMutationLogToTransactionsBeginTime)
1577-
.detail("CoalesceKeyVersionCacheTime", now() - coalesceKeyVersionCacheBeginTime);
1578+
.detail("CoalesceKeyVersionCacheTime", now() - coalesceKeyVersionCacheBeginTime)
1579+
.detail("Zhe", "Wang");
1580+
}
1581+
1582+
if (CLIENT_KNOBS->RESTORE_VERBOSE_LOGGING) {
1583+
metrics->log();
15781584
}
15791585

15801586
beginVersion = newEndVersion;

0 commit comments

Comments
 (0)