Skip to content

Commit

Permalink
- Follow-up fix to MDEV-15229
Browse files Browse the repository at this point in the history
  • Loading branch information
Thirunarayanan committed Mar 26, 2018
1 parent c764bc0 commit e275350
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions mysql-test/suite/encryption/r/innodb-discard-import.result
Original file line number Diff line number Diff line change
Expand Up @@ -130,5 +130,6 @@ NOT FOUND /barfoo/ in t2.ibd
NOT FOUND /tmpres/ in t3.ibd
# t4 yes on expecting NOT FOUND
# MDEV-15527 FIXME: Enable this test!
NOT FOUND /mysql/ in t4.ibd
DROP PROCEDURE innodb_insert_proc;
DROP TABLE t1,t2,t3,t4;
3 changes: 1 addition & 2 deletions mysql-test/suite/encryption/t/innodb-discard-import.test
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,7 @@ SELECT COUNT(*) FROM t4;
--let SEARCH_PATTERN=mysql
--echo # t4 yes on expecting NOT FOUND
-- let SEARCH_FILE=$t4_IBD
--echo # MDEV-15527 FIXME: Enable this test!
#-- source include/search_pattern_in_file.inc
-- source include/search_pattern_in_file.inc

DROP PROCEDURE innodb_insert_proc;
DROP TABLE t1,t2,t3,t4;
Expand Down
2 changes: 2 additions & 0 deletions storage/innobase/buf/buf0buf.cc
Original file line number Diff line number Diff line change
Expand Up @@ -7402,6 +7402,8 @@ buf_page_encrypt_before_write(

bpage->real_size = out_len;

/* Workaround for MDEV-15527. */
memset(tmp + out_len, 0 , srv_page_size - out_len);
#ifdef UNIV_DEBUG
fil_page_type_validate(tmp);
#endif
Expand Down

0 comments on commit e275350

Please sign in to comment.