Skip to content

Commit

Permalink
try diff way
Browse files Browse the repository at this point in the history
  • Loading branch information
juliannguyen4 committed Jan 14, 2025
1 parent 95ae146 commit 57b485a
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion doc/client.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1572,6 +1572,17 @@ The metadata dictionary has the following key-value pairs:
Policies
========

.. |on_locking_only| **on_locking_only** (:class:`bool`)
Execute the write command only if the record is not already locked by this transaction.
If this field is true and the record is already locked by this transaction, the command will
raise an Aerospike exception with server error code ``AEROSPIKE_MRT_ALREADY_LOCKED`` (``126``).
This field is useful for safely retrying non-idempotent writes as an alternative to simply
aborting the transaction.
Default: :py:obj:`False`
.. _aerospike_write_policies:

Write Policies
Expand Down Expand Up @@ -1674,7 +1685,7 @@ Write Policies

Default: :py:obj:`None`

* .. include:: ./on_locking_only.rst
* |on_locking_only|

.. _aerospike_read_policies:

Expand Down

0 comments on commit 57b485a

Please sign in to comment.