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:
parent
d6bdde6fe8
commit
ec0e39b40f
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue