[tarantool-patches] [PATCH v2 0/8] Make transaction autonomous from a fiber internals

Georgy Kirichenko georgy at tarantool.org
Thu May 23 11:19:32 MSK 2019


This patch set is focused on two major options:
 1. To make a transaction and a fiber independent from one another
 2. To make a transaction commit asynchronous.

The first one detaches transaction from fiber and stores all
transaction data into a its own memory region.

The second one is intended to allow to have more than one transaction
per fiber in fly and it is a prerequisite for a parallel applier.

Changes in v2:
  - Three patches are merged to master
  - Replicated rows are also copied to txn region
  - A fiber to process tx_prio endpoint
  - Engine commit and triggers are changed in order
  - Minor fixes according to review

Issue: https://github.com/tarantool/tarantool/issues/1254
Branch: https://github.com/tarantool/tarantool/tree/g.kirichenko/gh-1254-remove-fiber-from-txn

Georgy Kirichenko (8):
  Encode a dml statement to a transaction memory region
  Get rid of autocommit from a txn structure
  Get rid of fiber_gc from txn_rollback
  Remove fiber from a journal_entry structure
  Commit engine before all triggers
  Offload tx_prio processing to a fiber
  Enable asyncronous wal writes
  Introduce asynchronous txn commit

 src/box/applier.cc     |  36 +++++--
 src/box/box.cc         | 160 ++++++++++++++++++++++++-----
 src/box/call.c         |  16 ++-
 src/box/index.cc       |  10 +-
 src/box/journal.c      |  23 ++++-
 src/box/journal.h      |  47 ++++++++-
 src/box/memtx_engine.c |  11 +-
 src/box/memtx_space.c  |   8 +-
 src/box/request.c      |   2 +-
 src/box/sql.c          |   2 +-
 src/box/txn.c          | 221 ++++++++++++++++++++++++-----------------
 src/box/txn.h          |  30 +++---
 src/box/vinyl.c        |  12 +--
 src/box/vy_log.c       |   2 +-
 src/box/vy_scheduler.c |  16 +--
 src/box/vy_stmt.c      |   4 +-
 src/box/wal.c          |  79 +++++++++++----
 src/box/xrow.c         |  14 +--
 src/box/xrow.h         |  12 ++-
 19 files changed, 501 insertions(+), 204 deletions(-)

-- 
2.21.0





More information about the Tarantool-patches mailing list