[tarantool-patches] [PATCH 0/2] Transaction refactoring

Georgy Kirichenko georgy at tarantool.org
Wed Apr 10 10:22:24 MSK 2019


This patchset bring two txn refactorings required for detachable (and
autonomous) transactions and parallel applier as well.
- The first of them adds a separate region to each `struct txn` and
  puts all finished transaction in a cache to save region allocations.
- The second one removes auto commit flag from struct twn and requires
  txn_begin/txn_commit to start and finish a transaction. Autocommit
  behavior moved to box level now.


Branch: https://github.com/tarantool/tarantool/tree/g.kirichenko/gh-1254-txn-memory-refactoring
Issue: https://github.com/tarantool/tarantool/issues/1254

Georgy Kirichenko (2):
  Introduce a txn memory region
  Get rid of aurocommit from a txn structure

 src/box/applier.cc     | 27 +++++++++++--
 src/box/box.cc         | 73 ++++++++++++++++++++++++---------
 src/box/errcode.h      |  1 +
 src/box/memtx_engine.c | 10 ++++-
 src/box/txn.c          | 91 ++++++++++++++++++++++++++++--------------
 src/box/txn.h          |  9 ++---
 src/box/vinyl.c        | 12 ++----
 test/box/misc.result   |  1 +
 8 files changed, 155 insertions(+), 69 deletions(-)

-- 
2.21.0





More information about the Tarantool-patches mailing list