anchor.diff:                        updated_partitions=Updated_partitions}) ->
       case Op_type of
           prepare ->
  -            {next_state, prepare, SD0#state{from=Sender}, 0};
  +            case Args of
  +            two_phase ->
  +                {next_state, prepare_2pc, SD0#state{from=Sender, commit_protocol=Args}, 0};
  +            _ ->
  +                {next_state, prepare, SD0#state{from=Sender, commit_protocol=Args}, 0}
  +            end;
           read ->
               {Key, Type}=Args,
               Preflist = log_utilities:get_preflist_from_key(Key),
  
positive.code:           num_to_ack :: integer(),
            prepare_time :: integer(),
            commit_time :: integer(),
            state:: atom()}).
  
  %%%===================================================================
  
negative.code:          handle_sync_event/4, terminate/3]).
  
  %% States
  -export([execute_op/3, finish_op/3, prepare/2, prepare_2pc/2,
           receive_prepared/2, single_committing/2, committing_2pc/3, committing/2, receive_committed/2, abort/2,
           reply_to_client/2]).
  
  %%---------------------------------------------------------------------
  