From: Konstantin Osipov <kostja@tarantool.org>
To: tarantool-patches@freelists.org
Subject: [tarantool-patches] Re: [PATCH] vinyl: don't yield in on_commit and on_rollback triggers
Date: Wed, 19 Jun 2019 21:23:29 +0300 [thread overview]
Message-ID: <20190619182329.GC6260@atlas> (raw)
In-Reply-To: <fab6a29f740723d4b11cc154943393efe928654e.1560620378.git.vdavydov.dev@gmail.com>
* Vladimir Davydov <vdavydov.dev@gmail.com> [19/06/16 16:11]:
Basically the patch is LGTM but I would not use a mempool
vy_log_tx but more strongly a a region for vy_log records - these
are rare events (less than a handful a second per instance) and
using a malloc for such is entirely justified.
On the other hand I don't see any harm from using these (memory is
not pinned for along period of time, for example), so please feel
free to not bother with the comment.
> +vy_log_flusher_func(va_list va)
The convention is that we simply write _f for fiber functions at the
end.
I also did not find the place where you cancel or kill the fiber -
you assume it runs forever - please document it, since otherwise
the infinite fiber loop looks confusing.
--
Konstantin Osipov, Moscow, Russia
next prev parent reply other threads:[~2019-06-19 18:23 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-06-15 18:00 Vladimir Davydov
2019-06-19 18:23 ` Konstantin Osipov [this message]
2019-06-20 11:18 ` [tarantool-patches] " Vladimir Davydov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190619182329.GC6260@atlas \
--to=kostja@tarantool.org \
--cc=tarantool-patches@freelists.org \
--subject='[tarantool-patches] Re: [PATCH] vinyl: don'\''t yield in on_commit and on_rollback triggers' \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox