[Commits] 30535af: Remove extra event_destroy()

Jan Lindström jan.lindstrom at mariadb.com
Wed Sep 7 13:03:05 EEST 2016


revision-id: 30535afa7c9d4e957cb8afa30234ae62533492b3 (mariadb-10.2.1-7-g30535af)
parent(s): da479cf7c1c4fd27335115c8a094a37ae781ec57
committer: Jan Lindström
timestamp: 2016-09-07 13:02:52 +0300
message:

Remove extra event_destroy()

---
 storage/innobase/srv/srv0srv.cc | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/storage/innobase/srv/srv0srv.cc b/storage/innobase/srv/srv0srv.cc
index 0088ab3..1ba3eab 100644
--- a/storage/innobase/srv/srv0srv.cc
+++ b/storage/innobase/srv/srv0srv.cc
@@ -1144,8 +1144,6 @@ srv_free(void)
 
 	ut_free(srv_sys);
 
-	os_event_destroy(srv_buf_resize_event);
-
 #ifdef UNIV_DEBUG
 	os_event_destroy(srv_master_thread_disabled_event);
 	srv_master_thread_disabled_event = NULL;
@@ -2111,8 +2109,10 @@ srv_any_background_threads_are_active(void)
 	os_event_set(lock_sys->timeout_event);
 	os_event_set(dict_stats_event);
 	os_event_set(srv_buf_resize_event);
-	if (srv_scrub_log)
+
+	if (srv_scrub_log) {
 		os_event_set(log_scrub_event);
+	}
 
 	return(thread_active);
 }


More information about the commits mailing list