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
bdb10d3f
Commit
bdb10d3f
authored
Mar 09, 2006
by
msvensson@neptunus.(none)
Browse files
Options
Browse Files
Download
Plain Diff
Merge bk-internal:/home/bk/mysql-5.1-new
into neptunus.(none):/home/msvensson/mysql/bug17137/my51-bug17137
parents
481dc5b7
59f505f0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
54 additions
and
0 deletions
+54
-0
mysql-test/r/rpl_trunc_temp.result
mysql-test/r/rpl_trunc_temp.result
+22
-0
mysql-test/t/rpl_trunc_temp.test
mysql-test/t/rpl_trunc_temp.test
+32
-0
No files found.
mysql-test/r/rpl_trunc_temp.result
0 → 100644
View file @
bdb10d3f
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 temporary table t1 (n int);
insert into t1 values(1);
show status like 'Slave_open_temp_tables';
Variable_name Value
Slave_open_temp_tables 1
delete from t1;
show status like 'Slave_open_temp_tables';
Variable_name Value
Slave_open_temp_tables 1
truncate t1;
show status like 'Slave_open_temp_tables';
Variable_name Value
Slave_open_temp_tables 1
show status like 'Slave_open_temp_tables';
Variable_name Value
Slave_open_temp_tables 0
mysql-test/t/rpl_trunc_temp.test
0 → 100644
View file @
bdb10d3f
source
include
/
master
-
slave
.
inc
;
#
# Bug#17137 Running "truncate table" on temporary table
# leaves the table open on a slave
#
create
temporary
table
t1
(
n
int
);
insert
into
t1
values
(
1
);
sync_slave_with_master
;
show
status
like
'Slave_open_temp_tables'
;
# Perform a delete from temp table
connection
master
;
delete
from
t1
;
sync_slave_with_master
;
show
status
like
'Slave_open_temp_tables'
;
# Perform truncate on temp table
connection
master
;
truncate
t1
;
sync_slave_with_master
;
show
status
like
'Slave_open_temp_tables'
;
# Disconnect the master, temp table on slave should dissapear
disconnect
master
;
--
real_sleep
3
# time for DROP to be read by slave
connection
slave
;
show
status
like
'Slave_open_temp_tables'
;
# End of 4.1 tests
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