Tarantool development patches archive
 help / color / mirror / Atom feed
From: Vladislav Shpilevoy <v.shpilevoy@tarantool.org>
To: Chris Sosnin <k.sosnin@tarantool.org>
Cc: tarantool-patches@dev.tarantool.org
Subject: Re: [Tarantool-patches] [PATCH v3 2/2] iproto: add an empty body to the unprepare response
Date: Mon, 16 Mar 2020 23:01:52 +0100	[thread overview]
Message-ID: <b5d5d524-e397-9d87-bb09-a7116b07fe4c@tarantool.org> (raw)
In-Reply-To: <09EA2B12-D7C5-4076-A5F0-8CDBF78EF620@tarantool.org>

LGTM.

On 16/03/2020 10:02, Chris Sosnin wrote:
> Hi! Thank you for the review!
> 
>> On 15 Mar 2020, at 18:31, Vladislav Shpilevoy <v.shpilevoy@tarantool.org> wrote:
>>
>> Hi! Thanks for the patch!
>>
>> See 2 comments below.
>>
>>> diff --git a/src/box/iproto.cc b/src/box/iproto.cc
>>> index f313af6ae..5a3fb5d0b 100644
>>> --- a/src/box/iproto.cc
>>> +++ b/src/box/iproto.cc
>>> @@ -1871,7 +1874,7 @@ net_send_msg(struct cmsg *m)
>>> }
>>>
>>> /**
>>> - * Complete sending an iproto error: 
>>> + * Complete sending an iproto error:
>>
>> 1. Seems like a stray not related change.
> 
> I didn’t notice that my editor trimmed this trailing whitespace. I’m sorry.
> Reverted on branch.
> 
>>
>>>  * recycle the error object and flush output.
>>>  */
>>> static void
>>> diff --git a/test/box/gh-4769-unprepare-response-body.result b/test/box/gh-4769-unprepare-response-body.result
>>> new file mode 100644
>>> index 000000000..a5230fad1
>>> --- /dev/null
>>> +++ b/test/box/gh-4769-unprepare-response-body.result
>>> @@ -0,0 +1,62 @@
>>> +-- test-run result file version 2
>>> +test_run = require('test_run').new()
>>> + | ---
>>> + | ...
>>> +test_run:cmd("setopt delimiter ';'")
>>
>> 2. Why? You never use the new delimiter until you
>> reset it back to normal.
>>
>> You don't even need test_run = require('test_run').new(),
>> because without the needless delimiter change the
>> test_run object is also unused.
> 
> I did this to reduce output in the .result file. Fixed:
> 
> +-- test-run result file version 2
> +net_box = require('net.box')
> + | ---
> + | ...
> +msgpack = require('msgpack')
> + | ---
> + | ...
> +urilib = require('uri')
> + | ---
> + | ...
> +
> +IPROTO_REQUEST_TYPE = 0x00
> + | ---
> + | ...
> +IPROTO_PREPARE      = 13
> + | ---
> + | ...
> +IPROTO_SQL_TEXT     = 0x40
> + | ---
> + | ...
> +IPROTO_STMT_ID      = 0x43
> + | ---
> + | ...
> +
> +box.schema.user.grant('guest', 'read, write, execute', 'universe')
> 
>>
>>> + | ---
>>> + | - true
>>> + | ...
>>> +
>>> +net_box = require('net.box')
>>> +msgpack = require('msgpack')
>>> +urilib = require('uri')
>>> +
>>> +IPROTO_REQUEST_TYPE = 0x00
>>> +IPROTO_PREPARE      = 13
>>> +IPROTO_SQL_TEXT     = 0x40
>>> +IPROTO_STMT_ID      = 0x43
>>> +
>>> +test_run:cmd("setopt delimiter ''");
>>> + | ---
>>> + | ...
>>> +
> 

  reply	other threads:[~2020-03-16 22:01 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-11  9:13 [Tarantool-patches] [PATCH v3 0/2] " Chris Sosnin
2020-03-11  9:13 ` [Tarantool-patches] [PATCH v3 1/2] test: introduce iproto_request helper function Chris Sosnin
2020-03-11  9:14 ` [Tarantool-patches] [PATCH v3 2/2] iproto: add an empty body to the unprepare response Chris Sosnin
2020-03-15 15:31   ` Vladislav Shpilevoy
2020-03-16  9:02     ` Chris Sosnin
2020-03-16 22:01       ` Vladislav Shpilevoy [this message]
2020-03-17 14:15         ` Nikita Pettik

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=b5d5d524-e397-9d87-bb09-a7116b07fe4c@tarantool.org \
    --to=v.shpilevoy@tarantool.org \
    --cc=k.sosnin@tarantool.org \
    --cc=tarantool-patches@dev.tarantool.org \
    --subject='Re: [Tarantool-patches] [PATCH v3 2/2] iproto: add an empty body to the unprepare response' \
    /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