Skip to content

Commit

Permalink
Merge 5.5 into 10.1
Browse files Browse the repository at this point in the history
  • Loading branch information
kevgs committed Oct 29, 2019
2 parents 2cc360b + 84088d9 commit 9ed4d06
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
13 changes: 11 additions & 2 deletions client/mysql.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1401,12 +1401,21 @@ sig_handler handle_sigint(int sig)
char kill_buffer[40];
MYSQL *kill_mysql= NULL;

/* terminate if no query being executed, or we already tried interrupting */
if (!executing_query || (interrupted_query == 2))
/* Terminate if we already tried interrupting. */
if (interrupted_query == 2)
{
tee_fprintf(stdout, "Ctrl-C -- exit!\n");
goto err;
}
/* If no query being executed, don't exit. */
if (!executing_query)
{
tee_fprintf(stdout, "Ctrl-C\n");
rl_on_new_line(); // Regenerate the prompt on a newline
rl_replace_line("", 0); // Clear the previous text
rl_redisplay();
return;
}

kill_mysql= mysql_init(kill_mysql);
if (!do_connect(kill_mysql,current_host, current_user, opt_password, "", 0))
Expand Down
11 changes: 11 additions & 0 deletions storage/innobase/.clang-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
UseTab: Always
TabWidth: 8
IndentWidth: 8
ContinuationIndentWidth: 8
BreakBeforeBinaryOperators: All
PointerAlignment: Left
BreakBeforeBraces: Custom
ColumnLimit: 79
BraceWrapping:
AfterFunction: true
AccessModifierOffset: -8

0 comments on commit 9ed4d06

Please sign in to comment.