[PATCH 1.7 0/4] Fix DML in on_replace trigger

Vladimir Davydov vdavydov.dev at gmail.com
Tue Jan 23 13:06:10 MSK 2018


Issue: https://github.com/tarantool/tarantool/issues/3020
Branch: https://github.com/tarantool/tarantool/tree/gh-3020-fix-on-replace-rollback

Vladimir Davydov (4):
  txn: zap txn_savepoint->is_first flag
  Replace stailq_splice with stailq_cut_tail
  txn: fix rollback of sub-statements
  txn: fix on_replace trigger chaining

 src/box/txn.c                  |  90 ++++++++++--------------
 src/box/txn.h                  |  31 ++++++---
 src/box/vy_log.c               |  19 ++---
 src/box/vy_tx.c                |   9 +--
 src/box/wal.cc                 |  25 +++----
 src/lib/salad/stailq.h         |  28 +++++---
 test/box/on_replace.result     | 155 +++++++++++++++++++++++++++++++++++++++++
 test/box/on_replace.test.lua   |  76 ++++++++++++++++++++
 test/engine/savepoint.result   |  29 --------
 test/engine/savepoint.test.lua |  16 -----
 test/unit/stailq.c             |  44 +++++++++++-
 test/unit/stailq.result        |  33 ++++++++-
 12 files changed, 399 insertions(+), 156 deletions(-)

-- 
2.11.0




More information about the Tarantool-patches mailing list