Skip to content

Commit

Permalink
shard split process: disable monitoring around restarts and the impor…
Browse files Browse the repository at this point in the history
…t process
  • Loading branch information
evanelias committed May 17, 2013
1 parent 6c41c48 commit 6316eeb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/jetpants/shard.rb
Expand Up @@ -216,9 +216,11 @@ def prune_data!
stop_query_killer
import_schemata!
alter_schemata if respond_to? :alter_schemata
disable_monitoring
restart_mysql '--skip-log-bin', '--skip-log-slave-updates', '--innodb-autoinc-lock-mode=2', '--skip-slave-start'
import_data tables, @min_id, @max_id
restart_mysql # to clear out previous options '--skip-log-bin', '--skip-log-slave-updates', '--innodb-autoinc-lock-mode=2'
enable_monitoring
start_query_killer
end
end
Expand Down

0 comments on commit 6316eeb

Please sign in to comment.