Skip to content
Snippets Groups Projects
Commit 27db30f3 authored by Konstantin Osipov's avatar Konstantin Osipov
Browse files

Merge remote-tracking branch 'origin/stable'

Conflicts:
	client/tarantool/tc_cli.c
parents b0e9a91f 3a6ff3c2
No related branches found
No related tags found
No related merge requests found
......@@ -119,9 +119,10 @@ static int get_admin_port(void)
}
struct tnt_tuple *tu = TNT_ILIST_TUPLE(&it);
tnt_iter(&ifl, tu);
if (!tnt_next(&ifl)) { goto end; }
if (!tnt_next(&ifl)) {
tc_error("Can't get admin port from primary port");
}
int port = *((uint32_t* )TNT_IFIELD_DATA(&ifl));
end:
tnt_iter_free(&ifl);
tnt_iter_free(&it);
tnt_iter_free(&i);
......
......@@ -491,10 +491,10 @@ int tc_cli(void)
if (isatty(STDIN_FILENO)) /* Enable history on readline use only */
add_history(cmd.data);
tc_buf_cmdfy(&cmd, tc.opt.delim_len); /* Create admin cmd from STR */
enum tc_cli_cmd_ret ret;
if (delim_exists && tc_buf_str_isempty(&cmd))
goto next;
enum tc_cli_cmd_ret ret = tc_cli_cmd(cmd.data,
cmd.used - 1);
ret = tc_cli_cmd(cmd.data, cmd.used - 1);
next:
tc_buf_clear(&cmd);
if (ret == TC_CLI_EXIT || feof(stdin)) {
......
......@@ -8,7 +8,7 @@ Build-Depends: cdbs, debhelper (>= 8),
python-daemon,
python-pexpect,
libncurses5-dev,
binutils-dev,
binutils-dev | libiberty-dev,
libmysqlclient-dev,
libpq-dev
Section: database
......
......@@ -426,6 +426,7 @@ static int
lbox_tuple_unpack(struct lua_State *L)
{
int argc = lua_gettop(L);
(void) argc;
struct tuple *tuple = lua_checktuple(L, 1);
struct tuple_iterator it;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment