FastRestore:Revise trace events

This commit is contained in:
Meng Xu 2020-04-25 21:32:45 -07:00
parent 9f18146f4a
commit db8c402c0e
2 changed files with 2 additions and 1 deletions

View File

@ -57,6 +57,7 @@ struct RestoreWorkerData : NonCopyable, public ReferenceCounted<RestoreWorkerDa
RestoreWorkerData() = default; RestoreWorkerData() = default;
~RestoreWorkerData() { ~RestoreWorkerData() {
TraceEvent("RestoreWorkerDataDeleted").detail("WorkerID", workerID.toString());
printf("[Exit] Worker:%s RestoreWorkerData is deleted\n", workerID.toString().c_str()); printf("[Exit] Worker:%s RestoreWorkerData is deleted\n", workerID.toString().c_str());
} }

View File

@ -86,7 +86,7 @@ struct AtomicRestoreWorkload : TestWorkload {
TraceEvent("AtomicRestore_RestoreStart"); TraceEvent("AtomicRestore_RestoreStart");
if (self->fastRestore) { // New fast parallel restore if (self->fastRestore) { // New fast parallel restore
TraceEvent(SevWarnAlways, "AtomicParallelRestore"); TraceEvent(SevInfo, "AtomicParallelRestore");
wait(backupAgent.atomicParallelRestore(cx, BackupAgentBase::getDefaultTag(), self->backupRanges, wait(backupAgent.atomicParallelRestore(cx, BackupAgentBase::getDefaultTag(), self->backupRanges,
StringRef(), StringRef())); StringRef(), StringRef()));
} else { // Old style restore } else { // Old style restore