summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon MacMullen <simon@rabbitmq.com>2013-01-22 17:21:36 +0000
committerSimon MacMullen <simon@rabbitmq.com>2013-01-22 17:21:36 +0000
commitda1af402f59f79f1385f1670a7d35ca4d257d428 (patch)
tree28cff38551aecebb6259b11c402fcbfc780ddf7d
parentbf9a3fda22890a5382684b6977480cce92722f9b (diff)
downloadrabbitmq-server-da1af402f59f79f1385f1670a7d35ca4d257d428.tar.gz
Let's explain why...
-rw-r--r--src/rabbit_mnesia.erl3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/rabbit_mnesia.erl b/src/rabbit_mnesia.erl
index e5f83fd3..bd5ae117 100644
--- a/src/rabbit_mnesia.erl
+++ b/src/rabbit_mnesia.erl
@@ -645,6 +645,9 @@ prefer_result(E1, E2) -> case result_priority(E1) - result_priority(E2) of
_ -> E2
end.
+%% We prioritise like this since when we are in init_from_config/1 we
+%% only want to go into the special handling for {error, tables_not_present}
+%% if *all* nodes are in that state.
result_priority({ok, _}) -> 99;
result_priority({error, no_nodes_provided}) -> 0;
result_priority({error, tables_not_present}) -> 1;