diff options
| author | Francesco Mazzoli <francesco@rabbitmq.com> | 2012-05-10 14:42:12 +0100 |
|---|---|---|
| committer | Francesco Mazzoli <francesco@rabbitmq.com> | 2012-05-10 14:42:12 +0100 |
| commit | 01abd002e39cce91137a5eecdc2b45cd7cb2464b (patch) | |
| tree | 933db0dd2a80c19b08767bbd4028785fbb7b0ab0 | |
| parent | f01e52c4573fcf86ca57d0c38af26c386db869f3 (diff) | |
| download | rabbitmq-server-git-01abd002e39cce91137a5eecdc2b45cd7cb2464b.tar.gz | |
remove the subscription to the schema table
Since dump_tables won't work with the schema table (and works different to what
I had understood anyways) I don't think it's worth it to subscribe to the
table, and it's probably better to just modify the config file through
rabbit_node_monitor.
| -rw-r--r-- | src/rabbit_mnesia.erl | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/src/rabbit_mnesia.erl b/src/rabbit_mnesia.erl index 08e91e27b6..a120b9a33c 100644 --- a/src/rabbit_mnesia.erl +++ b/src/rabbit_mnesia.erl @@ -97,7 +97,6 @@ status() -> init() -> ensure_mnesia_running(), ensure_mnesia_dir(), - monitor_schema(), Nodes = read_cluster_nodes_config(), ok = init_db(Nodes, should_be_disc_node(Nodes)), %% We intuitively expect the global name server to be synced when @@ -831,21 +830,3 @@ start_mnesia() -> stop_mnesia() -> stopped = mnesia:stop(), ensure_mnesia_not_running(). - -handle_schema_events() -> - receive - {mnesia_table_event, _Event} -> - case is_disc_node() of - true -> ok; - false -> mnesia:dump_tables([schema]) - end, - handle_schema_events(); - _ -> - exit(non_event) - end. - -monitor_schema() -> - spawn(fun () -> mnesia:subscribe({table, schema, simple}), - handle_schema_events() - end), - ok. |
