From: Vladislav Shpilevoy <v.shpilevoy@tarantool.org>
To: Alexander Turenko <alexander.turenko@tarantool.org>
Cc: tarantool-patches@freelists.org, Kirill Yukhin <kyukhin@tarantool.org>
Subject: [tarantool-patches] Re: [server-dev] [PATCH] lua: pwd: split data fetch from deserialization
Date: Thu, 5 Sep 2019 00:02:44 +0200 [thread overview]
Message-ID: <d9ef60c9-4dc6-bfa6-d24b-f9fd0533b615@tarantool.org> (raw)
In-Reply-To: <8b8c10ef080d380f5b9e0ec45f5fcbdf73c209d8.1567433319.git.alexander.turenko@tarantool.org>
Hi! Thanks for the patch!
LGTM.
On 04/09/2019 00:42, Alexander Turenko wrote:
> This commit does not change a user visible behaviour. It refactors pwd
> module to explicitly divide code that fetches data from passwd / group
> databases from code that performs deserialization of the data to Lua
> tables.
>
> The idea of splitting of those actions appears when it was observed that
> a call of getpw() / getgr() leads to problems on some systems when it is
> invoked during passwd / group database traveral.
>
> Now it is more obvious that we don't call getpw() during passwd
> traversal and getgr() during group traveral.
>
> Follows up #4428 and #4447.
> ---
>
> This patch follows up the discussion in
> https://www.freelists.org/post/tarantool-patches/PATCH-lua-pwd-fix-passwd-and-group-traversal,1
>
> https://github.com/tarantool/tarantool/tree/Totktonada/gh-4447-refactor-pwd
>
> src/lua/pwd.lua | 111 +++++++++++++++++++++++++++++++++---------------
> 1 file changed, 77 insertions(+), 34 deletions(-)
next parent reply other threads:[~2019-09-04 21:59 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <8b8c10ef080d380f5b9e0ec45f5fcbdf73c209d8.1567433319.git.alexander.turenko@tarantool.org>
2019-09-04 22:02 ` Vladislav Shpilevoy [this message]
2019-09-13 8:15 ` Kirill Yukhin
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=d9ef60c9-4dc6-bfa6-d24b-f9fd0533b615@tarantool.org \
--to=v.shpilevoy@tarantool.org \
--cc=alexander.turenko@tarantool.org \
--cc=kyukhin@tarantool.org \
--cc=tarantool-patches@freelists.org \
--subject='[tarantool-patches] Re: [server-dev] [PATCH] lua: pwd: split data fetch from deserialization' \
/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