From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Thu, 21 Feb 2019 15:14:36 +0300 From: Vladimir Davydov Subject: Re: [tarantool-patches] Re: [PATCH 10/12] vinyl: rename key stmt construction routine Message-ID: <20190221121436.vb6fs2h4tkbubgtf@esperanza> References: <20190221111530.GJ3872@chai> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190221111530.GJ3872@chai> To: Konstantin Osipov Cc: tarantool-patches@freelists.org List-ID: On Thu, Feb 21, 2019 at 02:15:30PM +0300, Konstantin Osipov wrote: > * Vladimir Davydov [19/02/21 13:31]: > > Currently, it's called vy_stmt_new_select, but soon a key statement will > > be allowed to have any type, not just IPROTO_SELECT. So let's rename it > > to vy_stmt_new_key. Let's also rename the wrapper vy_key_from_msgpack to > > vy_stmt_new_key_from_array, because its key feature is that in contrast > > to vy_stmt_new_key it takes a msgpack array instead of key data + part > > count. > > I like the new names, vy_stmt_new_key_from_array - maybe > vy_stmt_new_key_from_msgpack after all? But vy_stmt_new_key also takes msgpack so we'd have two functions both taking msgpack, called vy_stmt_new_key and vy_stmt_new_key_from_msgpack. Looks confusing IMO. Not that it really matters to me. I can rename it if you think it's OK.