[Commits] 74fe0e03d55: Remove unused declarations.

marko.makela at mariadb.com marko.makela at mariadb.com
Wed Mar 8 11:46:34 EET 2017


revision-id: 74fe0e03d554130b60bf734531d1763451e6ceff (mariadb-10.0.29-64-g74fe0e03d55)
parent(s): 47396ddea91698f6ea1829697566a4d7c31bc789
author: Marko Mäkelä
committer: Marko Mäkelä
timestamp: 2017-03-08 11:46:34 +0200
message:

Remove unused declarations.

---
 storage/innobase/sync/sync0sync.cc | 5 +----
 storage/xtradb/srv/srv0start.cc    | 2 --
 storage/xtradb/sync/sync0sync.cc   | 5 +----
 3 files changed, 2 insertions(+), 10 deletions(-)

diff --git a/storage/innobase/sync/sync0sync.cc b/storage/innobase/sync/sync0sync.cc
index df360d221da..a2165a917b8 100644
--- a/storage/innobase/sync/sync0sync.cc
+++ b/storage/innobase/sync/sync0sync.cc
@@ -2,7 +2,7 @@
 
 Copyright (c) 1995, 2016, Oracle and/or its affiliates. All Rights Reserved.
 Copyright (c) 2008, Google Inc.
-Copyright (c) 2017, MariaDB Corporation. All Rights Reserved.
+Copyright (c) 2017, MariaDB Corporation.
 
 Portions of this file contain modifications contributed and copyrighted by
 Google, Inc. Those modifications are gratefully acknowledged and are described
@@ -223,9 +223,6 @@ UNIV_INTERN mysql_pfs_key_t	mutex_list_mutex_key;
 /** Latching order checks start when this is set TRUE */
 UNIV_INTERN ibool	sync_order_checks_on	= FALSE;
 
-/** Number of slots reserved for each OS thread in the sync level array */
-static const ulint SYNC_THREAD_N_LEVELS = 10000;
-
 /** Array for tracking sync levels per thread. */
 typedef std::vector<sync_level_t> sync_arr_t;
 
diff --git a/storage/xtradb/srv/srv0start.cc b/storage/xtradb/srv/srv0start.cc
index 5bd2b861ea0..d94dfe87783 100644
--- a/storage/xtradb/srv/srv0start.cc
+++ b/storage/xtradb/srv/srv0start.cc
@@ -2410,8 +2410,6 @@ innobase_start_or_create_for_mysql(void)
 
 	trx_sys_create();
 
-	bool srv_monitor_thread_started = false;
-
 	if (create_new_db) {
 		ut_a(!srv_read_only_mode);
 		init_log_online();
diff --git a/storage/xtradb/sync/sync0sync.cc b/storage/xtradb/sync/sync0sync.cc
index ca937df4475..c270b73e5a0 100644
--- a/storage/xtradb/sync/sync0sync.cc
+++ b/storage/xtradb/sync/sync0sync.cc
@@ -2,7 +2,7 @@
 
 Copyright (c) 1995, 2016, Oracle and/or its affiliates. All Rights Reserved.
 Copyright (c) 2008, Google Inc.
-Copyright (c) 2017, MariaDB Corporation. All Rights Reserved.
+Copyright (c) 2017, MariaDB Corporation.
 
 Portions of this file contain modifications contributed and copyrighted by
 Google, Inc. Those modifications are gratefully acknowledged and are described
@@ -224,9 +224,6 @@ UNIV_INTERN mysql_pfs_key_t	mutex_list_mutex_key;
 /** Latching order checks start when this is set TRUE */
 UNIV_INTERN ibool	sync_order_checks_on	= FALSE;
 
-/** Number of slots reserved for each OS thread in the sync level array */
-static const ulint SYNC_THREAD_N_LEVELS = 10000;
-
 /** Array for tracking sync levels per thread. */
 typedef std::vector<sync_level_t> sync_arr_t;
 


More information about the commits mailing list