Skip to content

Commit d440590

Browse files
committed
improve docs
1 parent 2b37036 commit d440590

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

doc/transaction.rst

+9-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Methods
1818
.. class:: Transaction
1919

2020
Initialize multi-record transaction (MRT), assign random transaction id and initialize
21-
reads/writes hashmaps with default capacities. The default MRT timeout is 10 seconds.
21+
reads/writes hashmaps with default capacities.
2222

2323
For both parameters, an unsigned 32-bit integer must be passed and the minimum value should be 16.
2424

@@ -50,6 +50,14 @@ Methods
5050
:type: int
5151
.. py:attribute:: timeout
5252
53+
MRT timeout in seconds. The timer starts when the MRT monitor record is created.
54+
This occurs when the first command in the MRT is executed. If the timeout is reached before
55+
:py:meth:`~aerospike.Client.commit` or :py:meth:`aerospike.Client.abort` is called, the server will expire and
56+
rollback the MRT.
57+
58+
The default client MRT timeout is zero. This means use the server configuration ``mrt-duration``
59+
as the MRT timeout. The default ``mrt-duration`` is 10 seconds.
60+
5361
This attribute can be read and written to.
5462

5563
:type: int

0 commit comments

Comments
 (0)