diff options
author | Jan Lindström <jan.lindstrom@mariadb.com> | 2017-01-03 11:22:09 +0200 |
---|---|---|
committer | Jan Lindström <jan.lindstrom@mariadb.com> | 2017-01-03 11:22:49 +0200 |
commit | 403f6e96070a3f35745d4d59d12e222d21ac4f38 (patch) | |
tree | 01fb7aff4502163e54898442f22eb8d10a9182eb /mysql-test/suite/encryption/r/innodb-scrub-log.result | |
parent | 4c610d10d400938481e418d8798279d61ff41d26 (diff) | |
download | mariadb-git-403f6e96070a3f35745d4d59d12e222d21ac4f38.tar.gz |
MDEV-11705: InnoDB: Failing assertion: (&log_sys->mutex)->is_owned() if server started with innodb-scrub-log
Problem was that log_scrub function did not take required log_sys mutex.
Background: Unused space in log blocks are padded with MLOG_DUMMY_RECORD if innodb-scrub-log
is enabled. As log files are written on circular fashion old log blocks can be reused
later for new redo-log entries. Scrubbing pads unused space in log blocks to avoid visibility
of the possible old redo-log contents.
log_scrub(): Take log_sys mutex
log_pad_current_log_block(): Increase srv_stats.n_log_scrubs if padding is done.
srv0srv.cc: Set srv_stats.n_log_scrubs to export vars innodb_scrub_log
ha_innodb.cc: Export innodb_scrub_log to global status.
Diffstat (limited to 'mysql-test/suite/encryption/r/innodb-scrub-log.result')
-rw-r--r-- | mysql-test/suite/encryption/r/innodb-scrub-log.result | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/mysql-test/suite/encryption/r/innodb-scrub-log.result b/mysql-test/suite/encryption/r/innodb-scrub-log.result new file mode 100644 index 00000000000..8ea75000368 --- /dev/null +++ b/mysql-test/suite/encryption/r/innodb-scrub-log.result @@ -0,0 +1,3 @@ +create table t1(a int not null primary key auto_increment, +b varchar(200), c char(100), d varchar(150)) engine=innodb; +DROP TABLE t1; |