Skip to content

Commit f36f9c8

Browse files
author
Loïc Hoguin
committed
Fix next_seq_id value when none is found in terms
This happens when upgrading from 3.9 or earlier.
1 parent 3c55369 commit f36f9c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

deps/rabbit/src/rabbit_variable_queue.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1788,7 +1788,7 @@ init(QueueVsn, IsDurable, IndexMod, IndexState, StoreState, DeltaCount, DeltaByt
17881788
case Terms of
17891789
non_clean_shutdown -> {HiSeqId, HiSeqId, DeltaCount, DeltaBytes};
17901790
_ -> NextSeqId0 = proplists:get_value(next_seq_id,
1791-
Terms, 0),
1791+
Terms, HiSeqId),
17921792
{NextSeqId0,
17931793
proplists:get_value(next_deliver_seq_id,
17941794
Terms, NextSeqId0),

0 commit comments

Comments
 (0)