From e02ed04d17cfa61aba1027746e34474e66b3820a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marko=20M=C3=A4kel=C3=A4?= Date: Wed, 25 Jan 2023 13:53:10 +0200 Subject: [PATCH] MDEV-23855 fixup: Remove SRV_MASTER_CHECKPOINT_INTERVAL --- storage/innobase/srv/srv0srv.cc | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/storage/innobase/srv/srv0srv.cc b/storage/innobase/srv/srv0srv.cc index a2d98ad88c4..337460fc4d2 100644 --- a/storage/innobase/srv/srv0srv.cc +++ b/storage/innobase/srv/srv0srv.cc @@ -413,17 +413,6 @@ thread ensures that we flush the log files at least once per second. */ static time_t srv_last_log_flush_time; -/* Interval in seconds at which various tasks are performed by the -master thread when server is active. In order to balance the workload, -we should try to keep intervals such that they are not multiple of -each other. For example, if we have intervals for various tasks -defined as 5, 10, 15, 60 then all tasks will be performed when -current_time % 60 == 0 and no tasks will be performed when -current_time % 5 != 0. */ - -# define SRV_MASTER_CHECKPOINT_INTERVAL (7) -# define SRV_MASTER_DICT_LRU_INTERVAL (47) - /** Buffer pool dump status frequence in percentages */ UNIV_INTERN ulong srv_buf_dump_status_frequency; @@ -1586,7 +1575,7 @@ srv_master_do_active_tasks(void) return; } - if (cur_time % SRV_MASTER_DICT_LRU_INTERVAL == 0) { + if (!(cur_time % 47)) { srv_main_thread_op_info = "enforcing dict cache limit"; ulint n_evicted = srv_master_evict_from_table_cache(50); if (n_evicted != 0) {