[Tarantool-patches] [PATCH 0/2] Make txn_commit() simpler
Vladislav Shpilevoy
v.shpilevoy at tarantool.org
Wed Jul 22 01:42:42 MSK 2020
The patch makes so journal_write() always ends with the
transaction completed, with TXN_IS_DONE flag installed. That
allows to remove 1 'if' from hot txn_commit() function, and make
journal API more straightforward.
This change also motivated rework of how limbo commits
transactions.
Branch: http://github.com/tarantool/tarantool/tree/gerold103/txn_commit-opt
Vladislav Shpilevoy (2):
txn_limbo: single function to confirm transactions
txn: remove TXN_IS_DONE check from txn_commit()
src/box/box.cc | 36 +++++++++++++-----
src/box/journal.c | 45 +----------------------
src/box/journal.h | 11 ------
src/box/txn.c | 6 +--
src/box/txn_limbo.c | 89 ++++++++++++++++++---------------------------
src/box/wal.c | 2 +-
test/unit/suite.ini | 1 +
7 files changed, 68 insertions(+), 122 deletions(-)
--
2.21.1 (Apple Git-122.3)
More information about the Tarantool-patches
mailing list