Fix IConfigTransaction::getReadVersion implementations
This commit is contained in:
parent
e68344e0ea
commit
634aa2deae
|
@ -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 {
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue