The storage server could fail to update its version to the latest processed if the peeked data contained a non-empty commit and ended with an empty commit.

This commit is contained in:
A.J. Beamon 2020-01-29 13:17:58 -08:00
parent a4df807404
commit d1b87f8b7f
2 changed files with 11 additions and 3 deletions

View File

@ -2,6 +2,14 @@
Release Notes
#############
6.2.16
======
Fixes
-----
* Storage servers could fail to advance their version correctly in response to empty commits. `(PR #) <https://github.com/apple/foundationdb/pull/>`_.
6.2.15
======

View File

@ -2768,9 +2768,9 @@ ACTOR Future<Void> update( StorageServer* data, bool* pReceivedUpdate )
if(ver != invalidVersion) {
data->lastVersionWithData = ver;
} else {
ver = cloneCursor2->version().version - 1;
}
}
ver = cloneCursor2->version().version - 1;
if(injectedChanges) data->lastVersionWithData = ver;
data->updateEagerReads = NULL;