summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Bakken <lbakken@pivotal.io>2020-07-15 10:47:35 -0700
committerLuke Bakken <lbakken@pivotal.io>2020-07-15 10:58:52 -0700
commitbc75d8ddb996bc9cd3e76a5f97a2fb06a839d88f (patch)
tree7d6130c1a89bee7d02a43c394e0b80a5f9c860e4
parent56ab7a16822a1f00a0ab452ddc2513425100b6da (diff)
downloadrabbitmq-server-git-bc75d8ddb996bc9cd3e76a5f97a2fb06a839d88f.tar.gz
Catch case where feature flag is not enabled
Follow-up to #2349 Part of #2321
-rw-r--r--src/rabbit_maintenance.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rabbit_maintenance.erl b/src/rabbit_maintenance.erl
index 7c8b39ad84..004f8b4cea 100644
--- a/src/rabbit_maintenance.erl
+++ b/src/rabbit_maintenance.erl
@@ -165,7 +165,7 @@ is_being_drained_consistent_read(Node) ->
-spec status_local_read(node()) -> maintenance_status().
status_local_read(Node) ->
- case mnesia:dirty_read(?TABLE, Node) of
+ case catch mnesia:dirty_read(?TABLE, Node) of
[] -> ?DEFAULT_STATUS;
[#node_maintenance_state{node = Node, status = Status}] ->
Status;