Skip to content

Commit 9b7cbfd

Browse files
author
Loïc Hoguin
committed
CQ: Fix crash when queue is not durable
1 parent 54e04a1 commit 9b7cbfd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

deps/rabbit/src/rabbit_variable_queue.erl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1352,6 +1352,9 @@ msg_store_client_init(MsgStore, Ref, MsgOnDiskFun, VHost) ->
13521352
rabbit_vhost_msg_store:client_init(VHost, MsgStore,
13531353
Ref, MsgOnDiskFun).
13541354

1355+
msg_store_pre_hibernate({undefined, MSCStateT}) ->
1356+
{undefined,
1357+
rabbit_msg_store:client_pre_hibernate(MSCStateT)};
13551358
msg_store_pre_hibernate({MSCStateP, MSCStateT}) ->
13561359
{rabbit_msg_store:client_pre_hibernate(MSCStateP),
13571360
rabbit_msg_store:client_pre_hibernate(MSCStateT)}.

0 commit comments

Comments
 (0)