Permalink
Browse files

More reloads!

  • Loading branch information...
1 parent 57597eb commit 0b74fd7b53b7bcb379a72ce3894713ac84d3843c @stuhood stuhood committed May 20, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 lib/gizzard/transformation_scheduler.rb
@@ -194,8 +194,13 @@ def end_settling_jobs(jobs)
end
Gizzard::confirm!(@force, "Finished copies: destination shards are now receiving writes, but " +
"not reads. Wait until queues are drained, and then enter 'y' to proceed.")
+ unblocked_count = 0
jobs.each do |j|
apply_job(j, :unblock_reads)
+ unblocked_count += 1
+ if unblocked_count > max_copies
+ nameserver.reload_updated_forwardings
+ end
end
nameserver.reload_updated_forwardings
Gizzard::confirm!(@force, "Destination shards are now receiving reads and writes. Wait until " +

0 comments on commit 0b74fd7

Please sign in to comment.