Tarantool development patches archive
 help / color / mirror / Atom feed
* [PATCH 00/10] Prepare box/alter.cc for transactional DDL
@ 2019-07-03 19:30 Vladimir Davydov
  2019-07-03 19:30 ` [PATCH 01/10] ddl: unreference view on space drop synchronously Vladimir Davydov
                   ` (10 more replies)
  0 siblings, 11 replies; 18+ messages in thread
From: Vladimir Davydov @ 2019-07-03 19:30 UTC (permalink / raw)
  To: kostja; +Cc: tarantool-patches

A set of pretty straightforward patches that prepare system space
triggers for transactional DDL, namely:

 - Make sure that in-memory schema updates are in sync with data
   updates, i.e. changes to the schema are done on replace, not on
   commit. Add tests whenever possible.
 - Removes txn_last_stmt from on commit/rollback, because it won't
   be available once there may be more than one DDL statement in a
   transaction.
 - Fixes some inconsistencies in sequence object rollback.

https://github.com/tarantool/tarantool/issues/4083
https://github.com/tarantool/tarantool/commits/dv/prepare-alter-for-transactional-ddl

Vladimir Davydov (10):
  ddl: unreference view on space drop synchronously
  ddl: synchronize user cache with actual data state
  ddl: synchronize func cache with actual data state
  ddl: synchronize sequence cache with actual data state
  ddl: fix _space_sequence rollback
  ddl: restore sequence value if drop is rolled back
  ddl: don't use txn_last_stmt on _collation commit/rollback
  ddl: don't use txn_last_stmt on _trigger commit/rollback
  ddl: don't use txn_last_stmt on _ck_constraint commit/rollback
  ddl: don't use txn_last_stmt on _cluster commit/rollback

 src/box/alter.cc            | 669 ++++++++++++++++++++++++++------------------
 src/box/lua/load_cfg.lua    |   1 -
 src/box/lua/schema.lua      |  48 +---
 src/box/lua/sequence.c      | 110 +++++++-
 src/box/schema.cc           |  39 +--
 src/box/schema.h            |   8 +-
 src/box/sequence.c          |  21 ++
 src/box/sequence.h          |  27 ++
 test/box/function1.result   |  34 +++
 test/box/function1.test.lua |  13 +
 test/box/sequence.result    | 117 ++++++++
 test/box/sequence.test.lua  |  44 +++
 12 files changed, 776 insertions(+), 355 deletions(-)

-- 
2.11.0

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

end of thread, other threads:[~2019-07-04 15:01 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-03 19:30 [PATCH 00/10] Prepare box/alter.cc for transactional DDL Vladimir Davydov
2019-07-03 19:30 ` [PATCH 01/10] ddl: unreference view on space drop synchronously Vladimir Davydov
2019-07-03 19:37   ` Konstantin Osipov
2019-07-03 19:30 ` [PATCH 02/10] ddl: synchronize user cache with actual data state Vladimir Davydov
2019-07-03 19:43   ` Konstantin Osipov
2019-07-03 20:00     ` Vladimir Davydov
2019-07-04  7:42       ` [tarantool-patches] " Konstantin Osipov
2019-07-03 19:30 ` [PATCH 03/10] ddl: synchronize func " Vladimir Davydov
2019-07-04  8:12   ` Konstantin Osipov
2019-07-03 19:30 ` [PATCH 04/10] ddl: synchronize sequence " Vladimir Davydov
2019-07-04  8:16   ` Konstantin Osipov
2019-07-03 19:30 ` [PATCH 05/10] ddl: fix _space_sequence rollback Vladimir Davydov
2019-07-03 19:30 ` [PATCH 06/10] ddl: restore sequence value if drop is rolled back Vladimir Davydov
2019-07-03 19:30 ` [PATCH 07/10] ddl: don't use txn_last_stmt on _collation commit/rollback Vladimir Davydov
2019-07-03 19:30 ` [PATCH 08/10] ddl: don't use txn_last_stmt on _trigger commit/rollback Vladimir Davydov
2019-07-03 19:30 ` [PATCH 09/10] ddl: don't use txn_last_stmt on _ck_constraint commit/rollback Vladimir Davydov
2019-07-03 19:30 ` [PATCH 10/10] ddl: don't use txn_last_stmt on _cluster commit/rollback Vladimir Davydov
2019-07-04 15:01 ` [PATCH 00/10] Prepare box/alter.cc for transactional DDL Vladimir Davydov

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