fix: the startVersion cannot be larger than the known committed version

This commit is contained in:
Evan Tschannen 2018-04-16 16:21:27 -07:00
parent dcfa1847ff
commit cef6c9b418
1 changed files with 1 additions and 1 deletions

View File

@ -1488,7 +1488,7 @@ struct TagPartitionedLogSystem : ILogSystem, ReferenceCounted<TagPartitionedLogS
while(lockNum < oldLogSystem->lockResults.size()) {
if(oldLogSystem->lockResults[lockNum].logSet->locality == remoteLocality) {
std::pair<Version,Version> versions = wait(TagPartitionedLogSystem::getDurableVersion(self->dbgid, oldLogSystem->lockResults[lockNum]));
logSet->startVersion = versions.first + 1;
logSet->startVersion = std::min(versions.first + 1, logSet->startVersion);
break;
}
lockNum++;