Deleting mnesia tables
Ulf Wiger
etxuwig@REDACTED
Fri Sep 6 15:49:26 CEST 2002
On Fri, 6 Sep 2002, Sean Hinde wrote:
>Thanks, Trouble is there are loads of tables on the other node
>and It is a lot of work to re-build it all again from the
>replica.
>
>I've thought over lunch and concluded that mnesia needs a "more
>rope" mode. It is good at trying to prevent dumb users from
>creating a network of inconsistent schemas, but not quite good
>enough (e.g. manually upgrade one node leaving cruft behind on
>another).
>
>The trouble is that once a live system is inconsistent it is
>nigh on impossible to repair it without a major rebuild of at
>least one node.
But isn't mnesia:set_master_nodes(Tab, OtherNodes) what you're
really looking for?
It will force mnesia on the node where the call is made to
unconditionally load Tab from one of the given nodes. The
function can be called before mnesia is started.
/Uffe
--
Ulf Wiger, Senior Specialist,
/ / / Architecture & Design of Carrier-Class Software
/ / / Strategic Product & System Management
/ / / Ericsson Telecom AB, ATM Multiservice Networks
More information about the erlang-questions
mailing list