mirror of
https://github.com/apple/foundationdb.git
synced 2025-06-03 03:41:53 +08:00
fix: must set startVersion when upgrading
This commit is contained in:
parent
3453a51d0f
commit
4248fbec61
@ -131,6 +131,13 @@ struct DBCoreState {
|
||||
ar & locality;
|
||||
tLogs[0].tLogLocalities.push_back(locality);
|
||||
}
|
||||
|
||||
if(oldTLogData.size()) {
|
||||
tLogs[0].startVersion = oldTLogData[0].epochEnd + 1;
|
||||
for(int i = 0; i < oldTLogData.size() - 1; i++) {
|
||||
oldTLogData[i].tLogs[0].startVersion = oldTLogData[i+1].epochEnd + 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user