anchor.diff:  txn_begin(Opts) ->
       Flags = process_flags(Opts),
       Cmd = <<Flags:32/native>>,
  -    <<Result:32/signed-native>> = erlang:port_control(get_port(), ?CMD_TXN_BEGIN, Cmd),
  -    case decode_rc(Result) of
  -        ok ->
  -            receive
  -                ok -> ok;
  -                {error, Reason} -> {error, Reason}
  -            end;
  -
  -        Error ->
  -            {error, Error}
  -    end.
  -
  -
  +    <<Rc:32/signed-native>> = erlang:port_control(get_port(), ?CMD_TXN_BEGIN, Cmd),
  +    recv_ok(Rc).
   
   %%--------------------------------------------------------------------
   %% @doc
  
positive.code: txn_commit(Opts) ->
      Flags = process_flags(Opts),
      Cmd = <<Flags:32/native>>,
      <<Result:32/signed-native>> = erlang:port_control(get_port(), ?CMD_TXN_COMMIT, Cmd),
      case decode_rc(Result) of
          ok ->
              receive
                  ok -> ok;
                  {error, Reason} -> {error, Reason}
              end;
          Error ->
              {error, Error}
      end.
  
  
  %%--------------------------------------------------------------------
  %% @doc
  
negative.code: %%
  %% @end
  %%--------------------------------------------------------------------
  -spec stat(Db :: db()) ->
      {ok, [{atom(), number()}]} | db_error().
  stat(Db) ->
      stat(Db, []).
  