[Tarantool-patches] [PATCH v3 2/2] iproto: add an empty body to the unprepare response

Vladislav Shpilevoy v.shpilevoy at tarantool.org
Sun Mar 15 18:31:50 MSK 2020


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.

>   * 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.

> + | ---
> + | - 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 ''");
> + | ---
> + | ...
> +


More information about the Tarantool-patches mailing list