mirror of
https://github.com/apache/activemq-artemis.git
synced 2025-02-21 01:15:50 +00:00
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:
parent
08a81a7402
commit
dc93f01542
@ -252,6 +252,7 @@ public class PageSubscriptionCounterImpl extends BasePagingCounter {
|
||||
}
|
||||
|
||||
if (keepZero) {
|
||||
tx.setContainsPersistent();
|
||||
recordID = storage.storePageCounter(tx.getID(), subscriptionID, 0L, 0L);
|
||||
} else {
|
||||
recordID = -1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user