Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
d671f506
Commit
d671f506
authored
Oct 30, 2019
by
Oleksandr Byelkin
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '5.5' into 10.1
parents
708d4615
9277b6ec
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
17 deletions
+6
-17
client/mysql.cc
client/mysql.cc
+2
-11
storage/heap/ha_heap.cc
storage/heap/ha_heap.cc
+4
-0
storage/heap/hp_close.c
storage/heap/hp_close.c
+0
-6
No files found.
client/mysql.cc
View file @
d671f506
...
...
@@ -1401,21 +1401,12 @@ sig_handler handle_sigint(int sig)
char
kill_buffer
[
40
];
MYSQL
*
kill_mysql
=
NULL
;
/*
Terminate if we already tried interrupting.
*/
if
(
interrupted_query
==
2
)
/*
terminate if no query being executed, or we already tried interrupting
*/
if
(
!
executing_query
||
(
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
))
...
...
storage/heap/ha_heap.cc
View file @
d671f506
...
...
@@ -431,6 +431,10 @@ int ha_heap::reset_auto_increment(ulonglong value)
int
ha_heap
::
external_lock
(
THD
*
thd
,
int
lock_type
)
{
#ifndef DBUG_OFF
if
(
lock_type
==
F_UNLCK
&&
file
->
s
->
changed
&&
heap_check_heap
(
file
,
0
))
return
HA_ERR_CRASHED
;
#endif
return
0
;
// No external locking
}
...
...
storage/heap/hp_close.c
View file @
d671f506
...
...
@@ -35,12 +35,6 @@ int hp_close(register HP_INFO *info)
{
int
error
=
0
;
DBUG_ENTER
(
"hp_close"
);
#ifndef DBUG_OFF
if
(
info
->
s
->
changed
&&
heap_check_heap
(
info
,
0
))
{
error
=
my_errno
=
HA_ERR_CRASHED
;
}
#endif
info
->
s
->
changed
=
0
;
if
(
info
->
open_list
.
data
)
heap_open_list
=
list_delete
(
heap_open_list
,
&
info
->
open_list
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment