Tarantool development patches archive
 help / color / mirror / Atom feed
* [Tarantool-patches] [PATCH 0/2] Make txn_commit() simpler
@ 2020-07-21 22:42 Vladislav Shpilevoy
  2020-07-21 22:42 ` [Tarantool-patches] [PATCH 1/2] txn_limbo: single function to confirm transactions Vladislav Shpilevoy
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Vladislav Shpilevoy @ 2020-07-21 22:42 UTC (permalink / raw)
  To: tarantool-patches, gorcunov

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)

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2020-07-22 23:14 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-21 22:42 [Tarantool-patches] [PATCH 0/2] Make txn_commit() simpler Vladislav Shpilevoy
2020-07-21 22:42 ` [Tarantool-patches] [PATCH 1/2] txn_limbo: single function to confirm transactions Vladislav Shpilevoy
2020-07-22 15:19   ` Leonid Vasiliev
2020-07-21 22:42 ` [Tarantool-patches] [PATCH 2/2] txn: remove TXN_IS_DONE check from txn_commit() Vladislav Shpilevoy
2020-07-22 15:28   ` Leonid Vasiliev
2020-07-22  8:40 ` [Tarantool-patches] [PATCH 0/2] Make txn_commit() simpler Cyrill Gorcunov
2020-07-22 23:14 ` Vladislav Shpilevoy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox