From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Fri, 5 Oct 2018 13:23:21 +0300 From: Vladimir Davydov Subject: Re: [tarantool-patches] [PATCH] box: add tuple:size function Message-ID: <20181005102321.eyhdkng2ymu5q6jc@esperanza> References: <1538070923-23087-1-git-send-email-ivushkinalex@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1538070923-23087-1-git-send-email-ivushkinalex@gmail.com> To: AlexeyIvushkin Cc: tarantool-patches@freelists.org List-ID: On Thu, Sep 27, 2018 at 08:55:23PM +0300, AlexeyIvushkin wrote: > diff --git a/src/box/lua/tuple.lua b/src/box/lua/tuple.lua > index 63ea73e..801ee3c 100644 > --- a/src/box/lua/tuple.lua > +++ b/src/box/lua/tuple.lua > @@ -286,6 +286,7 @@ local methods = { > ["update"] = tuple_update; > ["upsert"] = tuple_upsert; > ["bsize"] = tuple_bsize; > + ["size"] = internal.tuple.size; > ["tomap"] = internal.tuple.tuple_to_map; Why did you decide to introduce a new function rather than fixing tuple.bsize, as it was explicitly requested in the ticket?