From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Thu, 20 Jun 2019 16:05:32 +0300 From: Vladimir Davydov Subject: Re: [tarantool-patches] [PATCH v4 5/9] wal: a dedicated wal scheduling fiber Message-ID: <20190620130532.tuswrnd3lartbuym@esperanza> References: <635cf91a85c898d73b176a7c264ca4f63d1b40ff.1560978655.git.georgy@tarantool.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <635cf91a85c898d73b176a7c264ca4f63d1b40ff.1560978655.git.georgy@tarantool.org> To: Georgy Kirichenko Cc: tarantool-patches@freelists.org List-ID: On Thu, Jun 20, 2019 at 12:23:12AM +0300, Georgy Kirichenko wrote: > As we intend to implement asynchronous transaction we should be able to > process a transaction finalization despite the fact whether a > transaction has a waiting fiber or not. So introduce a wal->tx scheduler > fiber to process the transaction finalization. As we don't have a > asynchronous transaction right now the fiber only wakes a fiber. > > Note: this induces one context switch for each batch and doesn't look too > expensive to be unaffordable luxury. I pushed the patch removing yields from on_commit/rollback triggers in Vinyl so I guess we can safely drop this one.