Respond to review comments 7/12

This commit is contained in:
Dan Lambright 2021-07-12 14:37:28 -04:00
parent d8122ebc09
commit de9a6ea060
2 changed files with 4 additions and 1 deletions

View File

@ -295,7 +295,9 @@ struct LogSystemConfig {
int numLogs() const {
int numLogs=0;
for (auto& tLogSet : tLogs) {
numLogs += tLogSet.tLogs.size();
if (tLogSet.isLocal == true) {
numLogs += tLogSet.tLogs.size();
}
}
return numLogs;
}

View File

@ -1264,6 +1264,7 @@ ACTOR Future<Void> serveLiveCommittedVersion(Reference<MasterData> self) {
waitNext(self->myInterface.getTLogPrevCommitVersion.getFuture())) {
GetTLogPrevCommitVersionReply reply;
for (uint16_t tLog : req.writtenTLogs) {
// TODO the reply needs to be ordered by commit version.
reply.tpcvMap[tLog] = self->tpcvVector[tLog]; // TODO (placeholder)
}
req.reply.send(reply);