ARTEMIS-4199 PageCounter could leave a record pending in the journal

This is just an annoying thing. as the functionality would work properly if there was a previous value.
No other harm other than the cannot find TX record on startup for this, hence I'm fixing it.
This commit is contained in:
Clebert Suconic 2023-03-07 17:18:42 -05:00
parent 08a81a7402
commit dc93f01542

View File

@ -252,6 +252,7 @@ public class PageSubscriptionCounterImpl extends BasePagingCounter {
}
if (keepZero) {
tx.setContainsPersistent();
recordID = storage.storePageCounter(tx.getID(), subscriptionID, 0L, 0L);
} else {
recordID = -1;