remove cache update from extractreadversion and set lower time bound to 0

This commit is contained in:
Jon Fu 2021-10-05 12:54:22 -04:00
parent d560eb1fea
commit ae31f01dc4
2 changed files with 1 additions and 2 deletions

View File

@ -5709,7 +5709,6 @@ ACTOR Future<Version> extractReadVersion(Location location,
state Span span(spanContext, location, { parent });
GetReadVersionReply rep = wait(f);
double latency = now() - startTime;
cx->updateCachedRV(startTime, rep.version);
cx->GRVLatencies.addSample(latency);
if (trLogInfo)
trLogInfo->addLog(FdbClientLogEvents::EventGetVersion_V3(

View File

@ -1188,7 +1188,7 @@ ACTOR Future<Void> postResolution(CommitBatchContext* self) {
self->commitStartTime = now();
pProxyCommitData->lastStartCommit = self->commitStartTime;
auto curTime = now();
debug_advanceVersionTimestamp(self->commitVersion, curTime, curTime + CLIENT_KNOBS->MAX_VERSION_CACHE_LAG);
debug_advanceVersionTimestamp(self->commitVersion, 0, curTime + CLIENT_KNOBS->MAX_VERSION_CACHE_LAG);
self->loggingComplete = pProxyCommitData->logSystem->push(self->prevVersion,
self->commitVersion,
pProxyCommitData->committedVersion.get(),