Skip to content

Commit

Permalink
Fix monitoring
Browse files Browse the repository at this point in the history
  • Loading branch information
Amar Mudrankit committed May 31, 2017
1 parent 4bf6278 commit cff2885
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/jetpants/db/import_export.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit cff2885

Please sign in to comment.