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
5e9b3419
Commit
5e9b3419
authored
Aug 29, 2019
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clean up innodb.innodb-read-view
parent
2842ae03
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
14 deletions
+3
-14
mysql-test/suite/innodb/r/innodb-read-view.result
mysql-test/suite/innodb/r/innodb-read-view.result
+1
-6
mysql-test/suite/innodb/t/innodb-read-view.test
mysql-test/suite/innodb/t/innodb-read-view.test
+2
-8
No files found.
mysql-test/suite/innodb/r/innodb-read-view.result
View file @
5e9b3419
...
...
@@ -196,7 +196,6 @@ DROP TABLE t2;
# Bug 21433768: NON-REPEATABLE READ WITH REPEATABLE READ ISOLATION
#
connect con1,localhost,root,,;
# connection con1
CREATE TABLE t1(col1 INT PRIMARY KEY, col2 INT) ENGINE = InnoDB;
INSERT INTO t1 values (1, 0), (2, 0);
SELECT * FROM t1 ORDER BY col1;
...
...
@@ -208,7 +207,6 @@ UPDATE t1 SET col2 = 100;
SET DEBUG_SYNC = 'after_trx_committed_in_memory SIGNAL s1 WAIT_FOR s2';
COMMIT;;
connection default;
# connection default
SET DEBUG_SYNC = 'now WAIT_FOR s1';
UPDATE t1 SET col2 = col2 + 10 where col1 = 1;
COMMIT;
...
...
@@ -218,10 +216,7 @@ col1 col2
2 100
SET DEBUG_SYNC = 'now SIGNAL s2';
connection con1;
# connection con1
# reap COMMIT for con1
connection default;
# connection default
disconnect con1;
connection default;
DROP TABLE t1;
SET DEBUG_SYNC= 'RESET';
mysql-test/suite/innodb/t/innodb-read-view.test
View file @
5e9b3419
# DEBUG_SYNC must be compiled in.
--
source
include
/
have_debug_sync
.
inc
--
source
include
/
have_debug
.
inc
# We need to test the use case:
# a. Create a transaction T1 that will be promoted to RW.
...
...
@@ -176,7 +177,6 @@ DROP TABLE t2;
--
echo
#
--
connect
(
con1
,
localhost
,
root
,,)
--
echo
# connection con1
CREATE
TABLE
t1
(
col1
INT
PRIMARY
KEY
,
col2
INT
)
ENGINE
=
InnoDB
;
INSERT
INTO
t1
values
(
1
,
0
),
(
2
,
0
);
...
...
@@ -188,7 +188,6 @@ SET DEBUG_SYNC = 'after_trx_committed_in_memory SIGNAL s1 WAIT_FOR s2';
--
send
COMMIT
;
connection
default
;
--
echo
# connection default
SET
DEBUG_SYNC
=
'now WAIT_FOR s1'
;
UPDATE
t1
SET
col2
=
col2
+
10
where
col1
=
1
;
COMMIT
;
...
...
@@ -197,18 +196,13 @@ SELECT * FROM t1 ORDER BY col1;
SET
DEBUG_SYNC
=
'now SIGNAL s2'
;
connection
con1
;
--
echo
# connection con1
--
echo
# reap COMMIT for con1
reap
;
disconnect
con1
;
connection
default
;
--
echo
# connection default
disconnect
con1
;
DROP
TABLE
t1
;
# Clean up resources used in this test case.
--
disable_warnings
SET
DEBUG_SYNC
=
'RESET'
;
--
enable_warnings
--
source
include
/
wait_until_count_sessions
.
inc
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