anchor.diff:              filter_terms_for_key(Terms, Key, MinSnapshotTime, Ops, CommittedOpsDict)
       end.
   
  --spec handle_update(txid(), key(), dict:dict(txid(), [any_log_payload()]), #update_log_payload{}) -> dict:dict(txid(), [any_log_payload()]).
  +-spec handle_update(txid(), key(), update_ops_dict(), #update_log_payload{}) -> update_ops_dict().
   handle_update(TxId, Key, Ops, OpPayload = #update_log_payload{
       key = UpdatedKey
   }) ->
  
positive.code: 
          {ok, OpsList} ->
              NewCommittedOpsDict = lists:foldl(fun(UpdatePayload, Acc) ->
                  #update_log_payload{key = KeyInternal, type = Type, op = Op} = UpdatePayload,
                  case MinSnapshotTime of
                      undefined ->
                          Acc;
  
negative.code:          handle_exit/3]).
  
  -ignore_xref([start_vnode/1]).
  
  -opaque update_ops_dict() :: dict:dict(txid(), [any_log_payload()]).
  -opaque committed_ops_dict() :: dict:dict(key(), [clocksi_payload()]).
  -opaque ops_dict() :: dict:dict(key(), [{non_neg_integer(), clocksi_payload()}]).
  
  -export_type([ops_dict/0,
                update_ops_dict/0,
                committed_ops_dict/0]).
  
  -record(state, {partition :: partition_id(),
                  enable_log_to_disk :: boolean(), %% this enables or disables logging to disk.
  