Tarantool development patches archive
 help / color / mirror / Atom feed
From: Alexander Turenko <alexander.turenko@tarantool.org>
To: Igor Munkin <imun@tarantool.org>
Cc: tarantool-patches@dev.tarantool.org,
	Vladislav Shpilevoy <v.shpilevoy@tarantool.org>
Subject: Re: [Tarantool-patches] [PATCH 1/3] merger: drop luaL prefix where contract allows it
Date: Wed, 17 Jun 2020 20:53:20 +0300	[thread overview]
Message-ID: <20200617175320.nr7yw2w4baxpzzd2@tkn_work_nb> (raw)
In-Reply-To: <20200616115907.GV5745@tarantool.org>

> As for me I see a mess with the naming already exists:
> * What is the rule for using <lbox_> prefix? I see its common usage for
>   "exported" merger API functions (e.g. <lbox_merger_new_buffer_source>,
>   <lbox_merger_new_table_source>, <lbox_merger_new_tuple_source>) but
>   you also use it for <lbox_merge_source_new> helper routine. How come?

It should be luaT, agreed. But I finally decided to don't touch names
within this patchset.

> * There is a <luaT_check_merge_source> auxiliary function with no
>   Tarantool specifics underneath. Thereby it ought to be named with
>   <luaL_> prefix instead of <luaT_> one as you mentioned here[1]. Looks
>   like another naming rule "violation", doesn't it? However, you left
>   this one unchanged.

It operates on struct merge_source, so the naming here looks reasonable
for me.

> > I'll CC Igor to see what will look worthful for him.
> 
> I'm not fussy here (it's an old code) and we don't have strict naming
> policy for now, so let's discard these changes until we made any
> decision regarding #4577.

Considering Vlad's and your objections, it seems it is not worth to
touch these names.

I reverted the renames, but kept API comments and
luaL_merge_source_tuple_fetch() arguments reordering. I squashed those
changes into the main commit ('merger: fix NULL dereference when called
via iproto'). Added the following notes to the commit message:

 | Added API comments for destroy() and next() virtual methods to uniform
 | them visually with other merge source functions.
 |
 | Changed order of luaL_merge_source_tuple_fetch() arguments to unify it
 | with other functions (<struct lua_State *>, <struct merge_source *>).

WBR, Alexander Turenko.

  reply	other threads:[~2020-06-17 17:54 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-01 18:10 [Tarantool-patches] [PATCH 0/3] Merger's NULL defererence Alexander Turenko
2020-06-01 18:10 ` [Tarantool-patches] [PATCH 1/3] merger: drop luaL prefix where contract allows it Alexander Turenko
2020-06-02 22:47   ` Vladislav Shpilevoy
2020-06-07 16:57     ` Alexander Turenko
2020-06-11 16:17       ` Vladislav Shpilevoy
2020-06-16 11:59       ` Igor Munkin
2020-06-17 17:53         ` Alexander Turenko [this message]
2020-06-01 18:10 ` [Tarantool-patches] [PATCH 2/3] merger: fix NULL dereference when called via iproto Alexander Turenko
2020-06-02 22:48   ` Vladislav Shpilevoy
2020-06-07 16:58     ` Alexander Turenko
2020-06-11 16:18       ` Vladislav Shpilevoy
2020-06-17 17:53         ` Alexander Turenko
2020-06-18 22:47           ` Vladislav Shpilevoy
2020-06-01 18:10 ` [Tarantool-patches] [PATCH 3/3] lua: expose temporary Lua state for iproto calls Alexander Turenko
2020-06-02 22:48   ` Vladislav Shpilevoy
2020-06-07 16:58     ` Alexander Turenko
2020-06-02 22:47 ` [Tarantool-patches] [PATCH 0/3] Merger's NULL defererence Vladislav Shpilevoy
2020-06-07 17:17   ` Alexander Turenko
2020-06-07 16:58 ` [Tarantool-patches] [PATCH 2.5/3] merger: clean fiber-local Lua stack after next() Alexander Turenko
2020-06-11 16:20   ` Vladislav Shpilevoy
2020-06-17 17:53     ` Alexander Turenko
2020-06-18 22:48       ` Vladislav Shpilevoy
2020-06-19  7:41         ` Alexander Turenko
2020-06-17 17:54 ` [Tarantool-patches] [PATCH 0/3] Merger's NULL defererence Alexander Turenko

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=20200617175320.nr7yw2w4baxpzzd2@tkn_work_nb \
    --to=alexander.turenko@tarantool.org \
    --cc=imun@tarantool.org \
    --cc=tarantool-patches@dev.tarantool.org \
    --cc=v.shpilevoy@tarantool.org \
    --subject='Re: [Tarantool-patches] [PATCH 1/3] merger: drop luaL prefix where contract allows it' \
    /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