anchor.diff:  
       %% Unlock handling request
       ok = leo_object_storage_server:unlock(ObjStorageId),
  -    ok.
  +    {ok, State#state{start_datetime = 0,
  +                     error_pos  = 0,
  +                     set_errors = sets:new(),
  +                     acc_errors = [],
  +                     obj_storage_info = #backend_info{},
  +                     result = undefined}}.
   
   %% @private
   after_execute(Ret, #state{obj_storage_info = StorageInfo,
  
positive.code:             {ok, {next, State_1}} ->
                  ok = run(Id, IsDiagnose),
                  {?ST_RUNNING, State_1};
              %% An unxepected error has occured
              {'EXIT', Cause} ->
                  ok = finish(State#state{result = ?RET_FAIL}),
                  ok = after_execute({error, Cause}, State),
                  {?ST_IDLING, #state{}};
              %% Reached end of the object-container
              {ok, {eof, State_1}} ->
                  ok = finish(State_1#state{result = ?RET_SUCCESS}),
                  ok = after_execute(ok, State_1),
                  {?ST_IDLING, #state{}};
              %% An epected error has occured
              {{error, Cause}, State_1} ->
                  ok = finish(State_1#state{result = ?RET_FAIL}),
                  ok = after_execute({error, Cause}, State_1),
                  {?ST_IDLING, #state{}}
          end,
      {next_state, NextStatus, State_3#state{status = NextStatus,
                                             num_of_batch_procs = NumOfBatchProcs_1}};
  
negative.code:     end,
  
      %% Finish compaction
      ok = after_execute_1({Ret, State}),
      finish(State).
  
  
  %% @doc Reduce objects from the object-container.
  