[Commits] 745e923: Disable encryption info and first page read info for every tablespace

Jan Lindström jan.lindstrom at mariadb.com
Sat Sep 24 14:22:04 EEST 2016


revision-id: 745e923158969d0cd65e3d193db2a20627bd6428 (mariadb-10.1.17-20-g745e923)
parent(s): e136aa1ba7d6a0d4cc38e12a4cdcffaa5f0f01b1
committer: Jan Lindström
timestamp: 2016-09-24 14:21:27 +0300
message:

Disable encryption info and first page read info for every tablespace
on product builds.

---
 storage/innobase/fil/fil0fil.cc | 8 ++++++--
 storage/xtradb/fil/fil0fil.cc   | 8 ++++++--
 2 files changed, 12 insertions(+), 4 deletions(-)

diff --git a/storage/innobase/fil/fil0fil.cc b/storage/innobase/fil/fil0fil.cc
index d73539c..f1fdb0f 100644
--- a/storage/innobase/fil/fil0fil.cc
+++ b/storage/innobase/fil/fil0fil.cc
@@ -1251,12 +1251,14 @@ fil_space_create(
 		space->page_0_crypt_read = true;
 	}
 
+#ifdef UNIV_DEBUG
 	ib_logf(IB_LOG_LEVEL_INFO,
-		"Created tablespace for space %lu name %s key_id %u encryption %d\n",
+		"Created tablespace for space %lu name %s key_id %u encryption %d.",
 		space->id,
 		space->name,
 		space->crypt_data ? space->crypt_data->key_id : 0,
 		space->crypt_data ? space->crypt_data->encryption : 0);
+#endif
 
 	rw_lock_create(fil_space_latch_key, &space->latch, SYNC_FSP);
 
@@ -7267,13 +7269,15 @@ fil_space_get_crypt_data(
 			space->crypt_data = fil_space_read_crypt_data(space_id, page, offset);
 			ut_free(buf);
 
+#ifdef UNIV_DEBUG
 			ib_logf(IB_LOG_LEVEL_INFO,
-				"Read page 0 from tablespace for space %lu name %s key_id %u encryption %d handle %d\n",
+				"Read page 0 from tablespace for space %lu name %s key_id %u encryption %d handle %d.",
 				space_id,
 				space->name,
 				space->crypt_data ? space->crypt_data->key_id : 0,
 				space->crypt_data ? space->crypt_data->encryption : 0,
 				node->handle);
+#endif
 
 			ut_a(space->id == space_id);
 
diff --git a/storage/xtradb/fil/fil0fil.cc b/storage/xtradb/fil/fil0fil.cc
index 1dbc333..81f26b2 100644
--- a/storage/xtradb/fil/fil0fil.cc
+++ b/storage/xtradb/fil/fil0fil.cc
@@ -1296,12 +1296,14 @@ fil_space_create(
 		space->page_0_crypt_read = true;
 	}
 
+#ifdef UNIV_DEBUG
 	ib_logf(IB_LOG_LEVEL_INFO,
-		"Created tablespace for space %lu name %s key_id %u encryption %d\n",
+		"Created tablespace for space %lu name %s key_id %u encryption %d.",
 		space->id,
 		space->name,
 		space->crypt_data ? space->crypt_data->key_id : 0,
 		space->crypt_data ? space->crypt_data->encryption : 0);
+#endif
 
 	UT_LIST_ADD_LAST(space_list, fil_system->space_list, space);
 
@@ -7365,13 +7367,15 @@ fil_space_get_crypt_data(
 			space->crypt_data = fil_space_read_crypt_data(space_id, page, offset);
 			ut_free(buf);
 
+#ifdef UNIV_DEBUG
 			ib_logf(IB_LOG_LEVEL_INFO,
-				"Read page 0 from tablespace for space %lu name %s key_id %u encryption %d handle %d\n",
+				"Read page 0 from tablespace for space %lu name %s key_id %u encryption %d handle %d.",
 				space_id,
 				space->name,
 				space->crypt_data ? space->crypt_data->key_id : 0,
 				space->crypt_data ? space->crypt_data->encryption : 0,
 				node->handle);
+#endif
 
 			ut_a(space->id == space_id);
 


More information about the commits mailing list