Add a trace event to indicate completion of pager recovery.

This commit is contained in:
negoyal 2021-06-01 17:52:28 -07:00
parent 3e31e808ac
commit 9d82dd8824
1 changed files with 6 additions and 0 deletions

View File

@ -1894,6 +1894,12 @@ public:
self->remapQueue.resetHeadReader();
self->remapCleanupFuture = remapCleanup(self);
TraceEvent(SevInfo, "RedwoodRecovered")
.detail("FilePrefix", self->filename.c_str())
.detail("CommittedVersion", self->pHeader->committedVersion)
.detail("LogicalPageSize", self->logicalPageSize)
.detail("PhysicalPageSize", self->physicalPageSize)
.detail("RemapEntries", self->remapQueue.numEntries);
} else {
// Note: If the file contains less than 2 pages but more than 0 bytes then the pager was never successfully
// committed. A new pager will be created in its place.