summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Sackman <matthew@lshift.net>2009-06-30 17:49:32 +0100
committerMatthew Sackman <matthew@lshift.net>2009-06-30 17:49:32 +0100
commit20a4eb8757c7536b406affb14d76b3e537e6a7bf (patch)
treefb648f22d03f27b728683c08b882c908dba2b2e1
parent04c2afe353a136ad9f96c70f055178a0e322e3e3 (diff)
downloadrabbitmq-server-20a4eb8757c7536b406affb14d76b3e537e6a7bf.tar.gz
and now clustering seems to work again...
-rw-r--r--src/rabbit_mnesia.erl8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/rabbit_mnesia.erl b/src/rabbit_mnesia.erl
index 0201017c..3681af0a 100644
--- a/src/rabbit_mnesia.erl
+++ b/src/rabbit_mnesia.erl
@@ -298,9 +298,10 @@ init_db(ClusterNodes) ->
true -> disc;
false -> ram
end,
- ok = create_local_non_replicated_table_copies(TableCopyType),
- ok = wait_for_tables(),
- ok = create_local_replicated_table_copies(TableCopyType);
+ ok = create_local_table_copy(schema, disc_copies),
+ ok = create_local_non_replicated_table_copies(disc),
+ ok = create_local_replicated_table_copies(TableCopyType),
+ ok = wait_for_tables();
{error, Reason} ->
%% one reason we may end up here is if we try to join
%% nodes together that are currently running standalone or
@@ -358,7 +359,6 @@ create_local_non_replicated_table_copies(Type) ->
create_local_table_copies(Type, non_replicated_table_definitions()).
create_local_table_copies(Type, TableDefinitions) ->
- ok = create_local_table_copy(schema, disc_copies),
lists:foreach(
fun({Tab, TabDef}) ->
HasDiscCopies =