box.begin()
-
box.
begin
([txn_isolation])¶ Begin the transaction. Disable implicit yields until the transaction ends. Signal that writes to the write-ahead log will be deferred until the transaction ends. In effect the fiber which executes
box.begin()
is starting an «active multi-request transaction», blocking all other fibers.Параметры: - txn_isolation – transaction isolation level
Возможные ошибки:
- ошибка, если такая операция не допускается, потому что уже есть активная транзакция.
- ошибка, если по какой-либо причине нельзя выделить память.