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
424ff974
Commit
424ff974
authored
Nov 03, 2004
by
lars@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge mysql.com:/home/bkroot/mysql-4.1
into mysql.com:/home/bk/b5551-4.1-v4
parents
45451568
485de9cb
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
44 additions
and
0 deletions
+44
-0
BitKeeper/etc/logging_ok
BitKeeper/etc/logging_ok
+1
-0
mysql-test/r/rpl_failed_optimize.result
mysql-test/r/rpl_failed_optimize.result
+15
-0
mysql-test/t/rpl_failed_optimize-master.opt
mysql-test/t/rpl_failed_optimize-master.opt
+1
-0
mysql-test/t/rpl_failed_optimize.test
mysql-test/t/rpl_failed_optimize.test
+18
-0
sql/sql_parse.cc
sql/sql_parse.cc
+3
-0
sql/sql_table.cc
sql/sql_table.cc
+6
-0
No files found.
BitKeeper/etc/logging_ok
View file @
424ff974
...
@@ -95,6 +95,7 @@ kaj@work.mysql.com
...
@@ -95,6 +95,7 @@ kaj@work.mysql.com
kent@mysql.com
kent@mysql.com
konstantin@mysql.com
konstantin@mysql.com
kostja@oak.local
kostja@oak.local
lars@mysql.com
lenz@kallisto.mysql.com
lenz@kallisto.mysql.com
lenz@mysql.com
lenz@mysql.com
magnus@neptunus.(none)
magnus@neptunus.(none)
...
...
mysql-test/r/rpl_failed_optimize.result
0 → 100644
View file @
424ff974
stop slave;
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
reset master;
reset slave;
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
start slave;
CREATE TABLE t1 ( a int ) ENGINE=InnoDB;
BEGIN;
INSERT INTO t1 VALUES (1);
OPTIMIZE TABLE t1;
Table Op Msg_type Msg_text
test.t1 optimize status Operation failed
OPTIMIZE TABLE non_existing;
Table Op Msg_type Msg_text
test.non_existing optimize error Table 'test.non_existing' doesn't exist
mysql-test/t/rpl_failed_optimize-master.opt
0 → 100644
View file @
424ff974
--innodb-lock-wait-timeout=1
mysql-test/t/rpl_failed_optimize.test
0 → 100644
View file @
424ff974
source
include
/
have_innodb
.
inc
;
source
include
/
master
-
slave
.
inc
;
#
# BUG#5551 "Failed OPTIMIZE TABLE is logged to binary log"
# Replication should work when OPTIMIZE TABLE timeouts, and
# when OPTIMIZE TABLE is executed on a non-existing table
#
CREATE
TABLE
t1
(
a
int
)
ENGINE
=
InnoDB
;
BEGIN
;
INSERT
INTO
t1
VALUES
(
1
);
connection
master1
;
OPTIMIZE
TABLE
t1
;
OPTIMIZE
TABLE
non_existing
;
sync_slave_with_master
;
sql/sql_parse.cc
View file @
424ff974
...
@@ -2610,6 +2610,7 @@ unsent_create_error:
...
@@ -2610,6 +2610,7 @@ unsent_create_error:
mysql_update_log
.
write
(
thd
,
thd
->
query
,
thd
->
query_length
);
mysql_update_log
.
write
(
thd
,
thd
->
query
,
thd
->
query_length
);
if
(
mysql_bin_log
.
is_open
())
if
(
mysql_bin_log
.
is_open
())
{
{
thd
->
clear_error
();
// No binlog error generated
Query_log_event
qinfo
(
thd
,
thd
->
query
,
thd
->
query_length
,
0
);
Query_log_event
qinfo
(
thd
,
thd
->
query
,
thd
->
query_length
,
0
);
mysql_bin_log
.
write
(
&
qinfo
);
mysql_bin_log
.
write
(
&
qinfo
);
}
}
...
@@ -2638,6 +2639,7 @@ unsent_create_error:
...
@@ -2638,6 +2639,7 @@ unsent_create_error:
mysql_update_log
.
write
(
thd
,
thd
->
query
,
thd
->
query_length
);
mysql_update_log
.
write
(
thd
,
thd
->
query
,
thd
->
query_length
);
if
(
mysql_bin_log
.
is_open
())
if
(
mysql_bin_log
.
is_open
())
{
{
thd
->
clear_error
();
// No binlog error generated
Query_log_event
qinfo
(
thd
,
thd
->
query
,
thd
->
query_length
,
0
);
Query_log_event
qinfo
(
thd
,
thd
->
query
,
thd
->
query_length
,
0
);
mysql_bin_log
.
write
(
&
qinfo
);
mysql_bin_log
.
write
(
&
qinfo
);
}
}
...
@@ -2660,6 +2662,7 @@ unsent_create_error:
...
@@ -2660,6 +2662,7 @@ unsent_create_error:
mysql_update_log
.
write
(
thd
,
thd
->
query
,
thd
->
query_length
);
mysql_update_log
.
write
(
thd
,
thd
->
query
,
thd
->
query_length
);
if
(
mysql_bin_log
.
is_open
())
if
(
mysql_bin_log
.
is_open
())
{
{
thd
->
clear_error
();
// No binlog error generated
Query_log_event
qinfo
(
thd
,
thd
->
query
,
thd
->
query_length
,
0
);
Query_log_event
qinfo
(
thd
,
thd
->
query
,
thd
->
query_length
,
0
);
mysql_bin_log
.
write
(
&
qinfo
);
mysql_bin_log
.
write
(
&
qinfo
);
}
}
...
...
sql/sql_table.cc
View file @
424ff974
...
@@ -1734,6 +1734,12 @@ end:
...
@@ -1734,6 +1734,12 @@ end:
}
}
/*
RETURN VALUES
0 Message sent to net (admin operation went ok)
-1 Message should be sent by caller
(admin operation or network communication failed)
*/
static
int
mysql_admin_table
(
THD
*
thd
,
TABLE_LIST
*
tables
,
static
int
mysql_admin_table
(
THD
*
thd
,
TABLE_LIST
*
tables
,
HA_CHECK_OPT
*
check_opt
,
HA_CHECK_OPT
*
check_opt
,
const
char
*
operator_name
,
const
char
*
operator_name
,
...
...
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