From cff2885f42046e0ec5935347bbf9ac7f4b1916f4 Mon Sep 17 00:00:00 2001 From: Amar Mudrankit Date: Wed, 31 May 2017 10:44:26 -0400 Subject: [PATCH] Fix monitoring --- lib/jetpants/db/import_export.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/jetpants/db/import_export.rb b/lib/jetpants/db/import_export.rb index 81aecd6..904a849 100644 --- a/lib/jetpants/db/import_export.rb +++ b/lib/jetpants/db/import_export.rb @@ -447,7 +447,7 @@ def clone_to!(*targets) targets.each {|t| t.add_start_option '--loose-gtid-deployment-step=1'} end - [self, targets].flatten.concurrent_each {|t| t.disable_monitoring; t.stop_query_killer; t.stop_mysql} + [self, targets].flatten.concurrent_each {|t| t.stop_query_killer; t.stop_mysql} targets.concurrent_each {|t| t.ssh_cmd "rm -rf #{t.mysql_directory}/ib_logfile*"} files = (databases + ['ibdata1', app_schema]).uniq @@ -465,7 +465,6 @@ def clone_to!(*targets) [self, targets].flatten.concurrent_each do |t| t.start_mysql t.start_query_killer - t.enable_monitoring end # If the source is using GTID, we need to set the targets' gtid_purged to equal the