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
21239bb0
Commit
21239bb0
authored
Jan 11, 2018
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
After-merge fix to innodb.log_corruption
parent
6dd302d1
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
4 deletions
+11
-4
mysql-test/suite/encryption/r/innodb_encrypt_log_corruption.result
...t/suite/encryption/r/innodb_encrypt_log_corruption.result
+2
-2
mysql-test/suite/innodb/t/log_corruption.test
mysql-test/suite/innodb/t/log_corruption.test
+9
-2
No files found.
mysql-test/suite/encryption/r/innodb_encrypt_log_corruption.result
View file @
21239bb0
...
...
@@ -124,8 +124,8 @@ SELECT COUNT(*) FROM INFORMATION_SCHEMA.ENGINES
WHERE engine = 'innodb'
AND support IN ('YES', 'DEFAULT', 'ENABLED');
COUNT(*)
0
FOUND
1
/InnoDB: Upgrading redo log:/ in mysqld.1.err
1
FOUND
2
/InnoDB: Upgrading redo log:/ in mysqld.1.err
# Minimal MariaDB 10.1.21 encrypted redo log
SELECT COUNT(*) `1` FROM INFORMATION_SCHEMA.ENGINES WHERE engine='innodb'
AND support IN ('YES', 'DEFAULT', 'ENABLED');
...
...
mysql-test/suite/innodb/t/log_corruption.test
View file @
21239bb0
...
...
@@ -428,8 +428,15 @@ print OUT pack("Nx[5]nx[5]", 1, 0x1286);
print
OUT
"ibbackup was here!!!1!"
;
print
OUT
pack
(
"x[470]N"
,
0x52b54540
);
# In encryption.innodb_log_corruption the previous step would
# replace the block with an encrypted one. Rewrite it as it was.
die
unless
seek
(
OUT
,
0x800
,
0
);
# replace the block with an encrypted one and update the checkpoint.
# Restore them.
# invalid (all-zero) checkpoint page 1 and an empty log page
print
OUT
chr
(
0
)
x
1024
;
# valid checkpoint block 2
print
OUT
pack
(
"x[12]NNNx[264]"
,
0x12860c
,
0
,
0x80c
);
# pointer to the MLOG_CHECKPOINT record, and checkpoint page checksum
print
OUT
pack
(
"H*x[204]NNN"
,
"590DBAACFE922582"
,
0x128612
,
0
,
0x101741b
);
# log page
print
OUT
pack
(
"NnnNx[496]N"
,
0x80000944
,
12
,
12
,
1
,
0x46c8a2a2
);
close
OUT
or
die
;
EOF
...
...
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