Fix build error.

This commit is contained in:
Xin Dong 2020-10-30 17:06:22 -07:00
parent 566365accd
commit d302f60925
2 changed files with 3 additions and 2 deletions

View File

@ -152,7 +152,7 @@ struct LogRouterData {
logger = traceCounters("LogRouterMetrics", dbgid, SERVER_KNOBS->WORKER_LOGGING_INTERVAL, &cc,
"LogRouterMetrics", [this](TraceEvent& te) {
te.detail("PrimaryPeekLocation", this->primaryPeekLocation);
te.detail("RouterTag", this->routerTag);
te.detail("RouterTag", this->routerTag.toString());
});
}
};

View File

@ -3406,9 +3406,10 @@ ACTOR Future<Void> metricsCore( StorageServer* self, StorageServerInterface ssi
wait( self->byteSampleRecovery );
Tag tag = self->tag;
actors.add(traceCounters("StorageMetrics", self->thisServerID, SERVER_KNOBS->STORAGE_LOGGING_DELAY,
&self->counters.cc, self->thisServerID.toString() + "/StorageMetrics",
[self](TraceEvent& te) { te.detail("Tag", self->tag); }));
[tag](TraceEvent& te) { te.detail("Tag", tag.toString()); }));
loop {
choose {