Bug fix: Popped versions are exclusive, so after recovery a tag for which there is no longer data should be considered popped up until the version *after* recovery, indicating that data at the recovery version itself has been popped.

This commit is contained in:
Steve Atherton 2021-08-24 15:16:20 -07:00
parent d6bdde6fe8
commit ec0e39b40f
3 changed files with 3 additions and 3 deletions

View File

@ -1157,7 +1157,7 @@ Version poppedVersion(Reference<LogData> self, Tag tag) {
if (tag == txsTag || tag.locality == tagLocalityTxs) {
return 0;
}
return self->recoveredAt;
return self->recoveredAt + 1;
}
return tagData->popped;
}

View File

@ -1376,7 +1376,7 @@ Version poppedVersion(Reference<LogData> self, Tag tag) {
if (tag == txsTag || tag.locality == tagLocalityTxs) {
return 0;
}
return self->recoveredAt;
return self->recoveredAt + 1;
}
return tagData->popped;
}

View File

@ -1503,7 +1503,7 @@ Version poppedVersion(Reference<LogData> self, Tag tag) {
if (tag == txsTag || tag.locality == tagLocalityTxs) {
return 0;
}
return self->recoveredAt;
return self->recoveredAt + 1;
}
return tagData->popped;
}