anchor.diff:  -define(NODE_EJECTED, 4).
   
   %% States
  --export([running/2, joining/2, leaving/2]).
  +-export([running/2, running/3, joining/2, joining/3, leaving/2, leaving/3]).
   
   %% API
   -export([add_node/1, join/2, leave/0, leave/1, shun/1, log_joined/0]).
  
positive.code: running(leave, State) ->
      running({leave, #leaving_state{}}, State).
  
  joining({exit, _Pid}, #joining_state{remote=RemoteNode, cookie=NewCookie}) ->
      error_logger:info_msg("ns_cluster: joining cluster. Child has exited.~n"),
      ns_mnesia:delete_schema(),
  
negative.code:     timer:apply_after(1000, ?MODULE, log_joined, []),
      {next_state, running, State}.
  
  
  joining(_Event, _From, State) ->
      {reply, unhandled, joining, State}.
  
  
  leaving({exit, _Pid}, LeaveData) ->
      error_logger:info_msg("ns_cluster: leaving cluster~n"),
      timer:sleep(1000),
  