[PATCH 5/5] Allow to execute non-yielding DDL statements in transactions

Vladimir Davydov vdavydov.dev at gmail.com
Mon Jul 8 11:09:34 MSK 2019


On Sat, Jul 06, 2019 at 01:56:35AM +0300, Konstantin Osipov wrote:
> * Vladimir Davydov <vdavydov.dev at gmail.com> [19/07/05 23:27]:
> 
> Please work on a test case which not only ensures the statements
> are allowed, but also produce desired results - as well as leave
> no traces/partial effects on rollback.

As a matter of fact, this simple test does check that rollback doesn't
leave any traces - if it did, an attempt to commit the same statements
would fail:

  box.begin() create() box.rollback() -- suppose it leaved some traces
  box.begin() create() box.commit() -- then this would fail

It also checks that the DDL operations produce the desired results,
otherwise an attempt to drop created objects would fail:

  box.begin() create() box.commit() -- suppose it didn't create some objects
  box.begin() drop() box.commit() -- then this would fail



More information about the Tarantool-patches mailing list