Top.Mail.Ru
box.begin() | Tarantool
Tarantool
Check out the new release 2.8

box.begin()

box.begin()

box.begin()

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.

Possible errors:

  • error if this operation is not permitted because there is already an active transaction.
  • error if for some reason memory cannot be allocated.