anchor.diff:  -module(lmq_console).
   
  --export([join/1, add_new_node/1]).
  +-export([join/1, leave/1, add_new_node/1]).
   
   join([NodeStr]) when is_list(NodeStr) ->
       Node = list_to_atom(NodeStr),
  
positive.code:         [] -> ok;
          Other -> {error, {copy_failed, Other}}
      end.
  
negative.code:         pang ->
              {error, not_reachable}
      end.
  
  leave([]) ->
      RunningNodes = [Node || Node <- mnesia:system_info(running_db_nodes),
                               Node =/= node()],
      ok = application:stop(mnesia),
      R = leave_cluster(RunningNodes),
      ok = application:start(mnesia),
      R.
  
  delete_local_schema() ->
      ok = application:stop(mnesia),
  