Fix IConfigTransaction::getReadVersion implementations

This commit is contained in:
sfc-gh-tclinkenbeard 2021-07-26 19:37:12 -07:00
parent e68344e0ea
commit 634aa2deae
2 changed files with 2 additions and 2 deletions

View File

@ -112,7 +112,7 @@ public:
if (!getGenerationFuture.isValid()) {
getGenerationFuture = getGeneration(this);
}
return map(getGenerationFuture, [](auto const& gen) { return gen.committedVersion; });
return map(getGenerationFuture, [](auto const& gen) { return gen.liveVersion; });
}
Optional<Version> getCachedReadVersion() const {

View File

@ -156,7 +156,7 @@ public:
Future<Version> getReadVersion() {
if (!getGenerationFuture.isValid())
getGenerationFuture = getGeneration(this);
return map(getGenerationFuture, [](auto const& gen) { return gen.committedVersion; });
return map(getGenerationFuture, [](auto const& gen) { return gen.liveVersion; });
}
Optional<Version> getCachedReadVersion() const {