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
33be6a3a
Commit
33be6a3a
authored
Sep 30, 2009
by
Davi Arnaut
Browse files
Options
Browse Files
Download
Plain Diff
Manual merge.
parents
5a420e6d
1442ef0f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
23 deletions
+19
-23
sql/sql_parse.cc
sql/sql_parse.cc
+19
-23
No files found.
sql/sql_parse.cc
View file @
33be6a3a
...
...
@@ -1429,24 +1429,25 @@ bool dispatch_command(enum enum_server_command command, THD *thd,
break
;
general_log_print
(
thd
,
command
,
NullS
);
#ifndef DBUG_OFF
DBUG_EXECUTE_IF
(
"simulate_detached_thread_refresh"
,
{
/*
Simulate a reload without a attached thread session.
Provides a environment similar to that of when the
server receives a SIGHUP signal and reloads caches
and flushes tables.
*/
bool
res
;
my_pthread_setspecific_ptr
(
THR_THD
,
NULL
);
res
=
reload_acl_and_cache
(
NULL
,
options
|
REFRESH_FAST
,
NULL
,
&
not_used
);
my_pthread_setspecific_ptr
(
THR_THD
,
thd
);
if
(
!
res
)
my_ok
(
thd
);
goto
end
;
}
);
bool
debug_simulate
=
FALSE
;
DBUG_EXECUTE_IF
(
"simulate_detached_thread_refresh"
,
debug_simulate
=
TRUE
;);
if
(
debug_simulate
)
{
/*
Simulate a reload without a attached thread session.
Provides a environment similar to that of when the
server receives a SIGHUP signal and reloads caches
and flushes tables.
*/
bool
res
;
my_pthread_setspecific_ptr
(
THR_THD
,
NULL
);
res
=
reload_acl_and_cache
(
NULL
,
options
|
REFRESH_FAST
,
NULL
,
&
not_used
);
my_pthread_setspecific_ptr
(
THR_THD
,
thd
);
if
(
!
res
)
my_ok
(
thd
);
break
;
}
#endif
if
(
!
reload_acl_and_cache
(
thd
,
options
,
NULL
,
&
not_used
))
my_ok
(
thd
);
...
...
@@ -1591,11 +1592,6 @@ bool dispatch_command(enum enum_server_command command, THD *thd,
break
;
}
/* Break the switch for DBUG wrapped code. */
#ifndef DBUG_OFF
end:
#endif
/* report error issued during command execution */
if
(
thd
->
killed_errno
())
{
...
...
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