anchor.diff:          _ ->
               ?log_error("Config replication sync failed: ~p", [RepSyncRV])
       end,
  -    sync_replicas(),
       OldCopies0 = OldChain -- NewChain,
       OldCopies = [OldCopyNode || OldCopyNode <- OldCopies0,
                                   OldCopyNode =/= undefined],
  
positive.code: 
  
  terminate(Reason, _State) ->
      sync_replicas(),
      TotalChanges = erlang:get(total_changes),
      ActualChanges = erlang:get(actual_changes),
      ?rebalance_debug("Savings: ~p (from ~p)~n",
                       [TotalChanges - ActualChanges, TotalChanges]),
  
      AllChildsEver = erlang:get(child_processes),
      [(catch erlang:exit(P, Reason)) || P <- AllChildsEver],
      [misc:wait_for_process(P, infinity) || P <- AllChildsEver],
  
negative.code:     true = (BucketName =/= undefined),
      BucketName.
  
  inc_vb_updates(#state{pending_vbucket_updates=P} = State) ->
      State#state{pending_vbucket_updates=(P + 1)}.
  
  