anchor.diff:  %% -*- erlang-indent-level: 4;indent-tabs-mode: nil;fill-column: 92 -*-
   %% ex: ts=4 sw=4 et
   %% @author Kevin Smith <kevin@opscode.com>
  +%% @author Seth Falcon <seth@opscode.com>
   %% @copyright 2011 Opscode, Inc.
   -module(mover_manager).
   
  
positive.code:     case find_org_by_worker(Pid) of
          #org{}=Org ->
              mark_org(nodes_failed, Org#org.guid),
              WorkerCount = Workers - 1,
              NextState = case WorkerCount > 0 of
                              true -> StateName;
                              false -> ready
                          end,
              %% this org has failed nodes.  To minimize downtime for this org, we will fail
              %% the migration and turn on writes back in couch-land.
              darklaunch_enable_node_writes(Org#org.name),
              {next_state, NextState, State#state{workers = WorkerCount}};
          _NotFound ->
              %% ignore the msg
              {next_state, StateName, State}
  
negative.code: 
  
  handle_info({'DOWN', _MRef, process, Pid, normal}, StateName,
              #state{workers = Workers, batches = Batches}=State) when Workers > 0 ->
      case find_org_by_worker(Pid) of
          #org{}=Org ->
              mark_org(complete, Org#org.guid),
              %% the org is now marked as complete and we regenerate the list of unmigrated
              %% orgs and send updates to our nginx lbs.  Marking the orgs as not_read_only is
              %% only for accounting so that we can find orgs that are migrated, but not
  