Fix next_seq_id value when none is found in terms

This happens when upgrading from 3.9 or earlier.
This commit is contained in:
Loïc Hoguin 2022-03-30 14:01:53 +02:00
parent 3c55369710
commit f36f9c87c4
No known key found for this signature in database
GPG Key ID: C69E26E3A9DF618F
1 changed files with 1 additions and 1 deletions

View File

@ -1788,7 +1788,7 @@ init(QueueVsn, IsDurable, IndexMod, IndexState, StoreState, DeltaCount, DeltaByt
case Terms of
non_clean_shutdown -> {HiSeqId, HiSeqId, DeltaCount, DeltaBytes};
_ -> NextSeqId0 = proplists:get_value(next_seq_id,
Terms, 0),
Terms, HiSeqId),
{NextSeqId0,
proplists:get_value(next_deliver_seq_id,
Terms, NextSeqId0),