[PATCH 4/5] memtx: fix txn_on_yield for DDL transactions

Vladimir Davydov vdavydov.dev at gmail.com
Tue Jul 9 10:51:36 MSK 2019


On Tue, Jul 09, 2019 at 12:57:50AM +0300, Konstantin Osipov wrote:
> * Vladimir Davydov <vdavydov.dev at gmail.com> [19/07/08 22:14]:
> > > another way to do it is to clear fiber->txn key whenever
> > > check_format /build_index functions yield. Basically these
> > > functions run in the background, in a transaction that is
> > > temporarily detached from the main fiber so should not pollute the
> > > caller fiber key.
> > 
> > I don't get it. Need to discuss f2f.
> 
> I don't get why you need to call this from vinyl.
> 
> If both engines use the api, it should be txn_* api of course. but
> I don't get why both engines need to use it, vinyl doesn't set
> yield triggers to my knowledge.

DDL is a memtx operation, but actual index creation is done in
vinyl_space_build_index.



More information about the Tarantool-patches mailing list