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
4ac87f75
Commit
4ac87f75
authored
Jun 22, 2012
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-342: fix two race conditions in the test case that could occasionally cause spurious failures.
parent
c4b9c322
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
+5
-0
mysql-test/suite/binlog/r/binlog_mdev342.result
mysql-test/suite/binlog/r/binlog_mdev342.result
+1
-0
mysql-test/suite/binlog/t/binlog_mdev342.test
mysql-test/suite/binlog/t/binlog_mdev342.test
+4
-0
No files found.
mysql-test/suite/binlog/r/binlog_mdev342.result
View file @
4ac87f75
SET GLOBAL max_binlog_size= 4096;
SET GLOBAL innodb_flush_log_at_trx_commit= 1;
RESET MASTER;
CREATE TABLE t1 (a INT PRIMARY KEY, b MEDIUMTEXT) ENGINE=Innodb;
SET DEBUG_SYNC= "binlog_open_before_update_index SIGNAL con1_ready WAIT_FOR con1_cont";
SET SESSION debug_dbug="+d,crash_create_critical_before_update_index";
...
...
mysql-test/suite/binlog/t/binlog_mdev342.test
View file @
4ac87f75
...
...
@@ -8,6 +8,7 @@
# (We do not need to restore these settings, as we crash the server).
SET
GLOBAL
max_binlog_size
=
4096
;
SET
GLOBAL
innodb_flush_log_at_trx_commit
=
1
;
RESET
MASTER
;
CREATE
TABLE
t1
(
a
INT
PRIMARY
KEY
,
b
MEDIUMTEXT
)
ENGINE
=
Innodb
;
...
...
@@ -35,6 +36,9 @@ SET DEBUG_SYNC= "now WAIT_FOR con2_ready";
--
write_file
$MYSQLTEST_VARDIR
/
tmp
/
mysqld
.
1.
expect
wait
-
binlog_mdev342
.
test
EOF
# If con1 manages to race ahead and crash, we can see the crash already in the
# SET DEBUG_SYNC statement, so need --error here also.
--
error
0
,
2006
,
2013
SET
DEBUG_SYNC
=
"now SIGNAL con1_cont"
;
connection
con1
;
--
error
2006
,
2013
...
...
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