From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: From: Vladimir Davydov Subject: [PATCH v2 0/3] Transactional DDL Date: Wed, 10 Jul 2019 16:09:26 +0300 Message-Id: To: kostja@tarantool.org Cc: tarantool-patches@freelists.org List-ID: This patch set implements transactional DDL for the case when all statements are non-yielding. There are only two DDL statements that may yield implicitly - building of a new index and checking a space format - so it must cover most user stories. For more details re the implementation, see comments to the individual patches. https://github.com/tarantool/tarantool/issues/4083 https://github.com/tarantool/tarantool/commits/dv/gh-4083-transactional-ddl v1: https://www.freelists.org/post/tarantool-patches/PATCH-05-Transactional-DDL Changes in v2: - Committed approved patches and rebased. - Fixed wrong index usage in AlterSpaceOp::commit,rollback - Reworked error reporting. - Reworked txn_on_yield management. Vladimir Davydov (3): memtx: fix txn_on_yield for DDL transactions ddl: don't use space_index from AlterSpaceOp::commit,rollback ddl: allow to execute non-yielding DDL statements in transactions src/box/alter.cc | 91 ++++++++++++++-------------------------- src/box/errcode.h | 2 +- src/box/memtx_engine.c | 96 ++---------------------------------------- src/box/memtx_space.c | 10 +++++ src/box/txn.c | 89 ++++++++++++++++++++++++++++++++++++--- src/box/txn.h | 63 +++++++++++++++------------- src/box/user.cc | 1 - src/box/vinyl.c | 25 ++++++++--- test/box/misc.result | 1 + test/box/on_replace.result | 53 +++++++++++------------ test/box/on_replace.test.lua | 13 +++--- test/box/transaction.result | 98 +++++++++++++++++++++++++++++++++---------- test/box/transaction.test.lua | 64 +++++++++++++++++++++++----- test/engine/ddl.result | 58 ++++++++++++++++++++++++- test/engine/ddl.test.lua | 39 ++++++++++++++++- test/engine/truncate.result | 10 +---- test/engine/truncate.test.lua | 6 +-- 17 files changed, 440 insertions(+), 279 deletions(-) -- 2.11.0