[Commits] 5d7002f: Introduce two debug crash points while writing crypt data to test

Jan Lindström jan.lindstrom at mariadb.com
Thu Mar 19 07:08:40 EET 2015


revision-id: 5d7002f93c3c1726268cef5baa64881febe06689
parent(s): 5e6905bb7f1c80e5cc368bb917f6e15afc73a269
committer: Jan Lindström
branch nick: 10.1-innodb
timestamp: 2015-03-19 07:07:56 +0200
message:

Introduce two debug crash points while writing crypt data to test
redo operations.

---
 storage/innobase/fil/fil0crypt.cc | 6 ++++++
 storage/xtradb/fil/fil0crypt.cc   | 6 ++++++
 2 files changed, 12 insertions(+)

diff --git a/storage/innobase/fil/fil0crypt.cc b/storage/innobase/fil/fil0crypt.cc
index 10d49bb..4a78313 100644
--- a/storage/innobase/fil/fil0crypt.cc
+++ b/storage/innobase/fil/fil0crypt.cc
@@ -510,6 +510,9 @@ fil_space_write_crypt_data_low(fil_space_crypt_t *crypt_data,
 	mlog_write_ulint(page + offset + MAGIC_SZ + 2 + len, min_key_version,
 			 MLOG_4BYTES, mtr);
 
+	DBUG_EXECUTE_IF("ib_file_crypt_redo_crash_1",
+		ut_error;);
+
 	byte* log_ptr = mlog_open(mtr, 11 + 12 + len);
 	if (log_ptr != NULL) {
 		log_ptr = mlog_write_initial_log_record_fast(
@@ -530,6 +533,9 @@ fil_space_write_crypt_data_low(fil_space_crypt_t *crypt_data,
 
 		mlog_catenate_string(mtr, crypt_data->iv, len);
 	}
+
+	DBUG_EXECUTE_IF("ib_file_crypt_redo_crash_2",
+		ut_error;);
 }
 
 /******************************************************************
diff --git a/storage/xtradb/fil/fil0crypt.cc b/storage/xtradb/fil/fil0crypt.cc
index 10d49bb..4a78313 100644
--- a/storage/xtradb/fil/fil0crypt.cc
+++ b/storage/xtradb/fil/fil0crypt.cc
@@ -510,6 +510,9 @@ fil_space_write_crypt_data_low(fil_space_crypt_t *crypt_data,
 	mlog_write_ulint(page + offset + MAGIC_SZ + 2 + len, min_key_version,
 			 MLOG_4BYTES, mtr);
 
+	DBUG_EXECUTE_IF("ib_file_crypt_redo_crash_1",
+		ut_error;);
+
 	byte* log_ptr = mlog_open(mtr, 11 + 12 + len);
 	if (log_ptr != NULL) {
 		log_ptr = mlog_write_initial_log_record_fast(
@@ -530,6 +533,9 @@ fil_space_write_crypt_data_low(fil_space_crypt_t *crypt_data,
 
 		mlog_catenate_string(mtr, crypt_data->iv, len);
 	}
+
+	DBUG_EXECUTE_IF("ib_file_crypt_redo_crash_2",
+		ut_error;);
 }
 
 /******************************************************************


More information about the commits mailing list