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
37843864
Commit
37843864
authored
May 16, 2007
by
kostja@vajra.(none)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make a stab at events_bugs.test failure under valgrind (no
open bug report, reproduced in the runtime team tree).
parent
1683d65a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
sql/event_data_objects.cc
sql/event_data_objects.cc
+10
-0
No files found.
sql/event_data_objects.cc
View file @
37843864
...
@@ -1913,6 +1913,11 @@ Event_job_data::execute(THD *thd, bool drop)
...
@@ -1913,6 +1913,11 @@ Event_job_data::execute(THD *thd, bool drop)
thd
->
variables
.
sql_mode
=
sql_mode
;
thd
->
variables
.
sql_mode
=
sql_mode
;
thd
->
variables
.
time_zone
=
time_zone
;
thd
->
variables
.
time_zone
=
time_zone
;
/*
Peculiar initialization order is a clutch to avoid races in SHOW
PROCESSLIST which reads thd->{query/query_length} without a mutex.
*/
thd
->
query_length
=
0
;
thd
->
query
=
sp_sql
.
c_ptr_safe
();
thd
->
query
=
sp_sql
.
c_ptr_safe
();
thd
->
query_length
=
sp_sql
.
length
();
thd
->
query_length
=
sp_sql
.
length
();
...
@@ -1968,6 +1973,11 @@ end:
...
@@ -1968,6 +1973,11 @@ end:
ret
=
1
;
ret
=
1
;
else
else
{
{
/*
Peculiar initialization order is a clutch to avoid races in SHOW
PROCESSLIST which reads thd->{query/query_length} without a mutex.
*/
thd
->
query_length
=
0
;
thd
->
query
=
sp_sql
.
c_ptr_safe
();
thd
->
query
=
sp_sql
.
c_ptr_safe
();
thd
->
query_length
=
sp_sql
.
length
();
thd
->
query_length
=
sp_sql
.
length
();
if
(
Events
::
drop_event
(
thd
,
dbname
,
name
,
FALSE
))
if
(
Events
::
drop_event
(
thd
,
dbname
,
name
,
FALSE
))
...
...
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