From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Mon, 19 Nov 2018 20:48:20 +0300 From: Vladimir Davydov Subject: Re: [PATCH v5 01/12] box: refactor key_def_find routine Message-ID: <20181119174820.dtw3hiqqnj2pp3cs@esperanza> References: <4f2acb62de31f7ec7efc0246ae98c89b38d0291a.1540795996.git.kshcherbatov@tarantool.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4f2acb62de31f7ec7efc0246ae98c89b38d0291a.1540795996.git.kshcherbatov@tarantool.org> To: Kirill Shcherbatov Cc: tarantool-patches@freelists.org List-ID: On Mon, Oct 29, 2018 at 09:56:30AM +0300, Kirill Shcherbatov wrote: > Refactored key_def_find routine to use key_part as a second > argument. Introduced key_def_find_by_fieldno helper to use in > scenarios where no key_part exists. > New API is more convenient for complex key_part that will appear > with JSON paths introduction. > > Need for #1012 > --- > src/box/alter.cc | 7 ++++--- > src/box/key_def.c | 19 ++++++++++++++----- > src/box/key_def.h | 9 ++++++++- > src/box/sql/build.c | 2 +- > src/box/sql/pragma.c | 2 +- > 5 files changed, 28 insertions(+), 11 deletions(-) Pushed to 2.1.