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
28fe756a
Commit
28fe756a
authored
Apr 23, 2006
by
aelkin@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
manual merge use local
parent
b2b725db
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2947 additions
and
893 deletions
+2947
-893
mysql-test/t/rpl_temporary.test
mysql-test/t/rpl_temporary.test
+23
-23
sql/sql_base.cc
sql/sql_base.cc
+2924
-870
No files found.
mysql-test/t/rpl_temporary.test
View file @
28fe756a
...
@@ -82,6 +82,7 @@ drop temporary table t3;
...
@@ -82,6 +82,7 @@ drop temporary table t3;
select
*
from
t2
;
select
*
from
t2
;
--
replace_result
$VERSION
VERSION
--
replace_result
$VERSION
VERSION
--
replace_column
2
# 5 #
show
binlog
events
;
show
binlog
events
;
drop
table
t1
,
t2
;
drop
table
t1
,
t2
;
...
@@ -129,31 +130,30 @@ create temporary table t3 (f int);
...
@@ -129,31 +130,30 @@ create temporary table t3 (f int);
sync_with_master
;
sync_with_master
;
#
#
# BUG#17263 incorrect generation DROP temp tables
# Bug#17284 erroneous temp table cleanup on slave
# Temporary tables of connection are dropped in batches
# where a batch correspond to pseudo_thread_id
# value was set up at the moment of temp table creation
#
#
connection
con1
;
set
@
session
.
pseudo_thread_id
=
100
;
create
temporary
table
t101
(
id
int
);
create
temporary
table
t102
(
id
int
);
set
@
session
.
pseudo_thread_id
=
200
;
create
temporary
table
t201
(
id
int
);
create
temporary
table
`#not_user_table_prefixed_with_hash_sign_no_harm`
(
id
int
);
set
@
con1_id
=
connection_id
();
kill
@
con1_id
;
#now do something to show that slave is ok after DROP temp tables
connection
master
;
connection
master
;
create
table
t1
(
f
int
);
create
temporary
table
t4
(
f
int
);
insert
into
t1
values
(
1
);
create
table
t5
(
f
int
);
sync_with_master
;
# find dumper's $id
source
include
/
get_binlog_dump_thread_id
.
inc
;
insert
into
t4
values
(
1
);
# a hint how to do that in 5.1
--
replace_result
$id
"`select id from information_schema.processlist where command='Binlog Dump'`"
eval
kill
$id
;
# to stimulate reconnection by slave w/o timeout
insert
into
t5
select
*
from
t4
;
save_master_pos
;
sync_slave_with_master
;
connection
slave
;
#connection slave
;
sync_with_master
;
select
*
from
t
1
/* must be 1
*/
;
select
*
from
t
5
/* must be 1 after reconnection
*/
;
connection
master
;
connection
master
;
drop
table
t1
;
drop
temporary
table
t4
;
drop
table
t5
;
# The server will now close done
# End of
4.1
tests
# End of
5.0
tests
sql/sql_base.cc
View file @
28fe756a
This source diff could not be displayed because it is too large. You can
view the blob
instead.
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