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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
000eba94
Commit
000eba94
authored
Dec 23, 2015
by
Nirbhay Choubey
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '10.0-galera' into 10.1
parents
8efdfc8b
89a26480
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
8 deletions
+18
-8
sql/mysqld.cc
sql/mysqld.cc
+8
-8
sql/sql_reload.cc
sql/sql_reload.cc
+10
-0
No files found.
sql/mysqld.cc
View file @
000eba94
...
...
@@ -5224,18 +5224,18 @@ static int init_server_components()
if
(
tmp
->
wsrep_applier
==
true
)
{
/*
S
et THR_THD to temporally point to this THD to register all the
variables that allocates memory for this THD
.
S
ave/restore server_status and variables.option_bits and they get
altered during init_for_queries()
.
*/
THD
*
current_thd_saved
=
current_thd
;
set_current_thd
(
tmp
)
;
unsigned
int
server_status_saved
=
tmp
->
server_status
;
ulonglong
option_bits_saved
=
tmp
->
variables
.
option_bits
;
/*
Also save/restore server_status and variables.option_bits and they
get altered during init_for_queries()
.
Set THR_THD to temporarily point to this THD to register all the
variables that allocates memory for this THD
.
*/
unsigned
int
server_status_saved
=
tmp
->
server_status
;
ulonglong
option_bits_saved
=
tmp
->
variables
.
option_bits
;
THD
*
current_thd_saved
=
current_thd
;
set_current_thd
(
tmp
)
;
tmp
->
init_for_queries
();
...
...
sql/sql_reload.cc
View file @
000eba94
...
...
@@ -310,6 +310,16 @@ bool reload_acl_and_cache(THD *thd, unsigned long long options,
}
}
#ifdef WITH_WSREP
if
(
thd
&&
thd
->
wsrep_applier
)
{
/*
In case of applier thread, do not wait for table share(s) to be
removed from table definition cache.
*/
options
|=
REFRESH_FAST
;
}
#endif
if
(
close_cached_tables
(
thd
,
tables
,
((
options
&
REFRESH_FAST
)
?
FALSE
:
TRUE
),
(
thd
?
thd
->
variables
.
lock_wait_timeout
:
...
...
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