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
9e1075ee
Commit
9e1075ee
authored
Jun 25, 2014
by
Nirbhay Choubey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Follow-up patch for lp:1312618 to fix a segfault.
parent
c039d966
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
9 deletions
+12
-9
sql/event_data_objects.cc
sql/event_data_objects.cc
+12
-9
No files found.
sql/event_data_objects.cc
View file @
9e1075ee
...
...
@@ -1473,12 +1473,15 @@ end:
thd
->
tx_read_only
=
false
;
#ifdef WITH_WSREP
if
(
WSREP
(
thd
))
{
// sql_print_information("sizeof(LEX) = %d", sizeof(struct LEX));
// sizeof(LEX) = 4512, so it's relatively safe to allocate it on stack.
LEX
lex
;
lex
.
sql_command
=
SQLCOM_DROP_EVENT
;
thd
->
lex
=
&
lex
;
LEX
*
old_lex
=
thd
->
lex
,
new_
lex
;
new_lex
.
sql_command
=
SQLCOM_DROP_EVENT
;
thd
->
lex
=
&
new_
lex
;
WSREP_TO_ISOLATION_BEGIN
(
WSREP_MYSQL_DB
,
NULL
,
NULL
);
thd
->
lex
=
old_lex
;
}
#endif
ret
=
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