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
b13541ff
Commit
b13541ff
authored
Dec 09, 2009
by
He Zhenxing
Browse files
Options
Browse Files
Download
Plain Diff
Merge Bug#45520 fix from 5.0-bugteam
parents
3a733bb4
bc2b3d2c
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
9 deletions
+8
-9
mysql-test/suite/rpl/r/rpl_killed_ddl.result
mysql-test/suite/rpl/r/rpl_killed_ddl.result
+1
-1
mysql-test/suite/rpl/t/rpl_killed_ddl.test
mysql-test/suite/rpl/t/rpl_killed_ddl.test
+2
-2
sql/sql_db.cc
sql/sql_db.cc
+5
-6
No files found.
mysql-test/suite/rpl/r/rpl_killed_ddl.result
View file @
b13541ff
...
@@ -63,7 +63,7 @@ source include/diff_master_slave.inc;
...
@@ -63,7 +63,7 @@ source include/diff_master_slave.inc;
DROP DATABASE d1;
DROP DATABASE d1;
source include/kill_query.inc;
source include/kill_query.inc;
source include/diff_master_slave.inc;
source include/diff_master_slave.inc;
DROP DATABASE d2;
DROP DATABASE
IF EXISTS
d2;
source include/kill_query.inc;
source include/kill_query.inc;
source include/diff_master_slave.inc;
source include/diff_master_slave.inc;
CREATE EVENT e2
CREATE EVENT e2
...
...
mysql-test/suite/rpl/t/rpl_killed_ddl.test
View file @
b13541ff
...
@@ -153,7 +153,7 @@ source include/kill_query_and_diff_master_slave.inc;
...
@@ -153,7 +153,7 @@ source include/kill_query_and_diff_master_slave.inc;
send
DROP
DATABASE
d1
;
send
DROP
DATABASE
d1
;
source
include
/
kill_query_and_diff_master_slave
.
inc
;
source
include
/
kill_query_and_diff_master_slave
.
inc
;
send
DROP
DATABASE
d2
;
send
DROP
DATABASE
IF
EXISTS
d2
;
source
include
/
kill_query_and_diff_master_slave
.
inc
;
source
include
/
kill_query_and_diff_master_slave
.
inc
;
######## EVENT ########
######## EVENT ########
...
@@ -226,7 +226,7 @@ source include/kill_query_and_diff_master_slave.inc;
...
@@ -226,7 +226,7 @@ source include/kill_query_and_diff_master_slave.inc;
send
DROP
PROCEDURE
p1
;
send
DROP
PROCEDURE
p1
;
source
include
/
kill_query_and_diff_master_slave
.
inc
;
source
include
/
kill_query_and_diff_master_slave
.
inc
;
# Temporarily disabled, see comment above for DROP FUNCTION IF EXISTS
# Temporarily disabled
because of bug#43353
, see comment above for DROP FUNCTION IF EXISTS
#send DROP PROCEDURE IF EXISTS p2;
#send DROP PROCEDURE IF EXISTS p2;
#source include/kill_query_and_diff_master_slave.inc;
#source include/kill_query_and_diff_master_slave.inc;
...
...
sql/sql_db.cc
View file @
b13541ff
...
@@ -695,6 +695,7 @@ int mysql_create_db(THD *thd, char *db, HA_CREATE_INFO *create_info,
...
@@ -695,6 +695,7 @@ int mysql_create_db(THD *thd, char *db, HA_CREATE_INFO *create_info,
file. In this case it's best to just continue as if nothing has
file. In this case it's best to just continue as if nothing has
happened. (This is a very unlikely senario)
happened. (This is a very unlikely senario)
*/
*/
thd
->
clear_error
();
}
}
not_silent:
not_silent:
...
@@ -810,9 +811,9 @@ bool mysql_alter_db(THD *thd, const char *db, HA_CREATE_INFO *create_info)
...
@@ -810,9 +811,9 @@ bool mysql_alter_db(THD *thd, const char *db, HA_CREATE_INFO *create_info)
if
(
mysql_bin_log
.
is_open
())
if
(
mysql_bin_log
.
is_open
())
{
{
int
errcode
=
query_error_code
(
thd
,
TRUE
);
thd
->
clear_error
(
);
Query_log_event
qinfo
(
thd
,
thd
->
query
(),
thd
->
query_length
(),
0
,
Query_log_event
qinfo
(
thd
,
thd
->
query
(),
thd
->
query_length
(),
0
,
/* suppress_use */
TRUE
,
errcode
);
/* suppress_use */
TRUE
,
0
);
/*
/*
Write should use the database being created as the "current
Write should use the database being created as the "current
...
@@ -822,7 +823,6 @@ bool mysql_alter_db(THD *thd, const char *db, HA_CREATE_INFO *create_info)
...
@@ -822,7 +823,6 @@ bool mysql_alter_db(THD *thd, const char *db, HA_CREATE_INFO *create_info)
qinfo
.
db
=
db
;
qinfo
.
db
=
db
;
qinfo
.
db_len
=
strlen
(
db
);
qinfo
.
db_len
=
strlen
(
db
);
thd
->
clear_error
();
/* These DDL methods and logging protected with LOCK_mysql_create_db */
/* These DDL methods and logging protected with LOCK_mysql_create_db */
mysql_bin_log
.
write
(
&
qinfo
);
mysql_bin_log
.
write
(
&
qinfo
);
}
}
...
@@ -962,9 +962,9 @@ bool mysql_rm_db(THD *thd,char *db,bool if_exists, bool silent)
...
@@ -962,9 +962,9 @@ bool mysql_rm_db(THD *thd,char *db,bool if_exists, bool silent)
}
}
if
(
mysql_bin_log
.
is_open
())
if
(
mysql_bin_log
.
is_open
())
{
{
int
errcode
=
query_error_code
(
thd
,
TRUE
);
thd
->
clear_error
(
);
Query_log_event
qinfo
(
thd
,
query
,
query_length
,
0
,
Query_log_event
qinfo
(
thd
,
query
,
query_length
,
0
,
/* suppress_use */
TRUE
,
errcode
);
/* suppress_use */
TRUE
,
0
);
/*
/*
Write should use the database being created as the "current
Write should use the database being created as the "current
database" and not the threads current database, which is the
database" and not the threads current database, which is the
...
@@ -973,7 +973,6 @@ bool mysql_rm_db(THD *thd,char *db,bool if_exists, bool silent)
...
@@ -973,7 +973,6 @@ bool mysql_rm_db(THD *thd,char *db,bool if_exists, bool silent)
qinfo
.
db
=
db
;
qinfo
.
db
=
db
;
qinfo
.
db_len
=
strlen
(
db
);
qinfo
.
db_len
=
strlen
(
db
);
thd
->
clear_error
();
/* These DDL methods and logging protected with LOCK_mysql_create_db */
/* These DDL methods and logging protected with LOCK_mysql_create_db */
mysql_bin_log
.
write
(
&
qinfo
);
mysql_bin_log
.
write
(
&
qinfo
);
}
}
...
...
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