[tarantool-patches] Re: [PATCH 2/4] txn: reverse commit trigger list only before running commit triggers
Konstantin Osipov
kostja at tarantool.org
Thu Jul 25 01:48:11 MSK 2019
* Vladimir Davydov <vdavydov.dev at gmail.com> [19/07/19 21:09]:
> Commit triggers must be run in the same order they are added, see commit
> 013432641283 ("txn: fix execution order of commit triggers"). To achieve
> that we added a new trigger method, trigger_add_tail(), which adds new
> triggers to the trigger list tail rather than to the head, and now we
> use this new method for adding commit triggers.
Commit triggers are a hot path.
Since this is a *double linked list* you don't need to reverse it
to *iterate over it in reverse order*.
Thanks :(
--
Konstantin Osipov, Moscow, Russia
More information about the Tarantool-patches
mailing list