Fix GetReadVersionReply.recentRequests

This commit is contained in:
Young Liu 2020-06-16 22:45:57 -07:00
parent 4be5e4b6d5
commit 580ce6da74

View File

@ -1411,13 +1411,13 @@ ACTOR Future<GetReadVersionReply> getLiveCommittedVersion(ProxyCommitData* commi
rep.version = commitData->committedVersion.get();
rep.locked = commitData->locked;
rep.metadataVersion = commitData->metadataVersion;
rep.recentRequests = commitData->stats.getRecentRequests();
for (auto v : versions) {
if(v.version > rep.version) {
rep = v;
}
}
rep.recentRequests = commitData->stats.getRecentRequests();
if (debugID.present()) {
g_traceBatch.addEvent("TransactionDebug", debugID.get().first(), "MasterProxyServer.getLiveCommittedVersion.After");