From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Sun, 7 Apr 2019 15:02:24 +0300 From: Vladimir Davydov Subject: Re: [tarantool-patches] Re: [PATCH v1 1/1] Implement mp_stack_top for mp_stack class Message-ID: <20190407120224.npbio6tka5r645jc@esperanza> References: <316cea905dca2ac8db8b1adb9d0040a9c338dc5c.1554219130.git.kshcherbatov@tarantool.org> <20190403121202.w66dbmhr7yrr5ysd@esperanza> <4377f916-eb85-44c4-2124-cb4b14d5a6d4@tarantool.org> <20190403154003.kdpt3vgbqtch3sjg@esperanza> <62477fef-d2fc-9559-30f4-36d03a9b70db@tarantool.org> <20190404154204.nthzbpfzw2ocek5p@esperanza> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: To: Kirill Shcherbatov Cc: tarantool-patches@freelists.org List-ID: On Fri, Apr 05, 2019 at 08:17:23PM +0300, Kirill Shcherbatov wrote: > Introduced a new mp_stack_top method for mp_stack class to > return the pointer to a top frame of the stack. > > Class methods have been redesigned so that this new mp_stack_top > helper fits into the API naturally. > > This is required in scope of multikey indexes to keep a pointer > to a multikey frame and extract currently processed item index > of this frame later. > > Needed for https://github.com/tarantool/tarantool/issues/1257 > --- > msgpuck.c | 16 ++++++------ > msgpuck.h | 77 +++++++++++++++++++++---------------------------------- > 2 files changed, 37 insertions(+), 56 deletions(-) Pushed to tarantool-msgpuck:master.