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
18f35a86
Commit
18f35a86
authored
Apr 22, 2021
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Plain Diff
Merge 10.5 into 10.6
parents
8121d03f
21973d0d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
8 deletions
+20
-8
mysql-test/main/flush_read_lock.result
mysql-test/main/flush_read_lock.result
+7
-4
mysql-test/main/flush_read_lock.test
mysql-test/main/flush_read_lock.test
+13
-4
No files found.
mysql-test/main/flush_read_lock.result
View file @
18f35a86
...
@@ -1392,19 +1392,22 @@ insert into t3_trans values (1);
...
@@ -1392,19 +1392,22 @@ insert into t3_trans values (1);
xa end 'test1';
xa end 'test1';
xa prepare 'test1';
xa prepare 'test1';
# Disconnect temporary connection
# Disconnect temporary connection
set debug_sync='thread_end SIGNAL test1_prepare';
disconnect con_tmp;
disconnect con_tmp;
connection con1;
set debug_sync='now WAIT_FOR test1_prepare';
# Create temporary connection for XA transaction.
# Create temporary connection for XA transaction.
connect con_tmp,localhost,root,,;
connect con_tmp
1
,localhost,root,,;
xa start 'test2';
xa start 'test2';
insert into t3_trans values (2);
insert into t3_trans values (2);
xa end 'test2';
xa end 'test2';
xa prepare 'test2';
xa prepare 'test2';
# Disconnect temporary connection
# Disconnect temporary connection
set debug_sync='thread_end SIGNAL
detached
';
set debug_sync='thread_end SIGNAL
test2_prepare
';
disconnect con_tmp;
disconnect con_tmp
1
;
# Switching to connection 'con1'.
# Switching to connection 'con1'.
connection con1;
connection con1;
set debug_sync='now WAIT_FOR
detached
';
set debug_sync='now WAIT_FOR
test2_prepare
';
flush tables with read lock;
flush tables with read lock;
# Switching to connection 'default'.
# Switching to connection 'default'.
connection default;
connection default;
...
...
mysql-test/main/flush_read_lock.test
View file @
18f35a86
...
@@ -1703,25 +1703,34 @@ insert into t3_trans values (1);
...
@@ -1703,25 +1703,34 @@ insert into t3_trans values (1);
xa
end
'test1'
;
xa
end
'test1'
;
xa
prepare
'test1'
;
xa
prepare
'test1'
;
--
echo
# Disconnect temporary connection
--
echo
# Disconnect temporary connection
set
debug_sync
=
'thread_end SIGNAL test1_prepare'
;
disconnect
con_tmp
;
disconnect
con_tmp
;
connection
$con_aux1
;
set
debug_sync
=
'now WAIT_FOR test1_prepare'
;
--
echo
# Create temporary connection for XA transaction.
--
echo
# Create temporary connection for XA transaction.
connect
(
con_tmp
,
localhost
,
root
,,);
connect
(
con_tmp
1
,
localhost
,
root
,,);
xa
start
'test2'
;
xa
start
'test2'
;
insert
into
t3_trans
values
(
2
);
insert
into
t3_trans
values
(
2
);
xa
end
'test2'
;
xa
end
'test2'
;
xa
prepare
'test2'
;
xa
prepare
'test2'
;
--
echo
# Disconnect temporary connection
--
echo
# Disconnect temporary connection
set
debug_sync
=
'thread_end SIGNAL detached'
;
set
debug_sync
=
'thread_end SIGNAL test2_prepare'
;
disconnect
con_tmp
;
disconnect
con_tmp1
;
--
echo
# Switching to connection '$con_aux1'.
--
echo
# Switching to connection '$con_aux1'.
connection
$con_aux1
;
connection
$con_aux1
;
set
debug_sync
=
'now WAIT_FOR
detached
'
;
set
debug_sync
=
'now WAIT_FOR
test2_prepare
'
;
flush
tables
with
read
lock
;
flush
tables
with
read
lock
;
--
echo
# Switching to connection 'default'.
--
echo
# Switching to connection 'default'.
connection
default
;
connection
default
;
--
echo
# Send XA ROLLBACK 'test1'
--
echo
# Send XA ROLLBACK 'test1'
--
send
xa
rollback
'test1'
--
send
xa
rollback
'test1'
--
echo
# Switching to connection '$con_aux1'.
--
echo
# Switching to connection '$con_aux1'.
connection
$con_aux1
;
connection
$con_aux1
;
--
echo
# Wait until XA ROLLBACK is blocked.
--
echo
# Wait until XA ROLLBACK is blocked.
let
$wait_condition
=
let
$wait_condition
=
...
...
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