anchor.diff:  %% @private
   -spec(output_accumulated_errors(#state{}) ->
                ok).
  -output_accumulated_errors(#state{set_errors = SetErrors}) ->
  +output_accumulated_errors(#state{error_pos  = ErrorPos,
  +                                 set_errors = SetErrors}) ->
       case sets:size(SetErrors) of
           0 ->
  -            void;
  +            ok;
           _ ->
               error_logger:warning_msg("~p,~p,~p,~p~n",
                                        [{module, ?MODULE_STRING},
                                         {function, "do_compact_1/4"},
  -                                      {line, ?LINE}, {body, sets:to_list(SetErrors)}])
  -    end,
  -    ok.
  +                                      {line, ?LINE},
  +                                      {body, [{error_pos, ErrorPos},
  +                                              {errors, sets:to_list(SetErrors)}]}
  +                                     ]),
  +            ok
  +    end.
   
   
   %% @doc Generate a raw file path.
  
positive.code:                          key_bin     = NewKeyValue,
                           body_bin    = NewBodyValue,
                           next_offset = NewNextOffset},
                         State);
          {error, eof} ->
              ok = output_accumulated_errors(State),
              NumOfAcriveObjs  = CompactParams#compact_params.num_of_active_objects,
  
negative.code:             {ok, NumOfAcriveObjs, SizeOfActiveObjs};
          {_, Cause} ->
              OldOffset = CompactParams#compact_params.next_offset,
              ErrorPosCur = State#state.error_pos,
              ErrorPosNew = case (State#state.error_pos == 0) of
                                true ->
                                    OldOffset;
                                false ->
                                    ErrorPosCur
                            end,
              SetErrors = sets:add_element(Cause, State#state.set_errors),
              do_compact_1(ok, Metadata,
                           CompactParams#compact_params{next_offset = OldOffset + 1},
                           State#state{error_pos  = ErrorPosNew,
                                       set_errors = SetErrors})
      end;
  do_compact_1(Error,_,_,_) ->
      Error.
  