From: Vladislav Shpilevoy <v.shpilevoy@tarantool.org> To: tarantool-patches@freelists.org, AlexeyIvushkin <ivushkinalex@gmail.com> Subject: [tarantool-patches] Re: [PATCH] box: add tuple:size function Date: Wed, 3 Oct 2018 17:20:28 +0300 [thread overview] Message-ID: <e629b483-bcb8-61f3-8665-b09cf0f76423@tarantool.org> (raw) In-Reply-To: <1538070923-23087-1-git-send-email-ivushkinalex@gmail.com> Hi! Thanks for the patch! On 27/09/2018 20:55, AlexeyIvushkin wrote: > From: Morgan-iv <ivushkinalex@gmail.com> > > When operating with tuples, we only have tuple:bsize function > to get size of tuple. tuple:bsize returns only size of MessagePack > part of struct tuple, without tuple_meta. New function tuple:size > returns size of all tuple, with MessagePack and tuple_meta > > Closes #2256 Please, write here a documentation request to fix doc of tuple:bsize (it returns Message Pack size only) and to describe the new method tuple:size(). How to write documentation requests in a commit see tarantool/docbot repository and commits like this: https://github.com/tarantool/tarantool/commit/1663bdc4a86fa6fd43903d2d52dd5a743b87f33b > --- > https://github.com/tarantool/tarantool/issues/2256 > https://github.com/tarantool/tarantool/tree/Morgan-iv/gh-2256 > src/box/lua/tuple.c | 10 ++++++++++ > src/box/lua/tuple.lua | 1 + > test/box/tuple.result | 12 ++++++++++++ > test/box/tuple.test.lua | 6 ++++++ > 4 files changed, 29 insertions(+) > > diff --git a/test/box/tuple.result b/test/box/tuple.result > index e035cb9..418f5f8 100644 > --- a/test/box/tuple.result > +++ b/test/box/tuple.result > @@ -186,6 +186,18 @@ t:bsize() > --- > - 5 > ... > +-- tuple:size() Please, put more details in the comment about the issue. See other tests. The comment should look like: -- -- gh-<issue_number>: <description>. -- ... a test ... > +t = box.tuple.new('abc') > +--- > +... > +t > +--- > +- ['abc'] > +... > +t:size() > +--- > +- 15 > +... > -- > -- Test cases for #106 box.tuple.new fails on multiple items > --
next prev parent reply other threads:[~2018-10-03 14:20 UTC|newest] Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top 2018-09-27 17:55 [tarantool-patches] " AlexeyIvushkin 2018-10-03 14:20 ` Vladislav Shpilevoy [this message] 2018-10-03 15:05 ` [tarantool-patches] " Vladislav Shpilevoy 2018-10-05 10:23 ` [tarantool-patches] " Vladimir Davydov 2018-10-06 13:58 ` [tarantool-patches] " Vladislav Shpilevoy 2018-10-08 10:16 ` Vladimir Davydov 2018-10-10 10:25 ` Vladislav Shpilevoy 2018-10-16 18:21 ` Konstantin Osipov 2018-10-17 7:28 ` Alexander Turenko 2018-10-17 15:29 ` Konstantin Osipov 2018-10-17 15:50 ` Alexander Turenko 2018-10-18 18:11 ` Konstantin Osipov 2018-10-18 18:15 ` Alexander Turenko 2018-10-17 18:06 ` Vladislav Shpilevoy 2018-10-17 18:10 ` Vladislav Shpilevoy 2018-10-17 18:14 ` Konstantin Osipov 2018-10-17 18:20 ` Alexander Turenko 2018-10-17 20:36 ` Vladislav Shpilevoy
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=e629b483-bcb8-61f3-8665-b09cf0f76423@tarantool.org \ --to=v.shpilevoy@tarantool.org \ --cc=ivushkinalex@gmail.com \ --cc=tarantool-patches@freelists.org \ --subject='[tarantool-patches] Re: [PATCH] box: add tuple:size function' \ /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