diff options
author | Simon MacMullen <simon@rabbitmq.com> | 2014-04-15 17:18:53 +0100 |
---|---|---|
committer | Simon MacMullen <simon@rabbitmq.com> | 2014-04-15 17:18:53 +0100 |
commit | 79c0f9cd425253e8035be03fe029ec0973c9ee99 (patch) | |
tree | f2b1375d426a9ed51991a2117aea82dd35b40dbb | |
parent | 319e174ea20f9df542da293f137e630a17e4ff28 (diff) | |
download | rabbitmq-server-79c0f9cd425253e8035be03fe029ec0973c9ee99.tar.gz |
Handle hibernation in our pre-go state.bug26118
-rw-r--r-- | src/rabbit_mirror_queue_slave.erl | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/rabbit_mirror_queue_slave.erl b/src/rabbit_mirror_queue_slave.erl index e5c3adac..8c550d95 100644 --- a/src/rabbit_mirror_queue_slave.erl +++ b/src/rabbit_mirror_queue_slave.erl @@ -353,6 +353,9 @@ terminate_common(State) -> code_change(_OldVsn, State, _Extra) -> {ok, State}. +handle_pre_hibernate({not_started, _Q} = State) -> + {hibernate, State}; + handle_pre_hibernate(State = #state { backing_queue = BQ, backing_queue_state = BQS }) -> {RamDuration, BQS1} = BQ:ram_duration(BQS), |