Navigation Menu

Skip to content

Commit

Permalink
Negative excess is not an error.
Browse files Browse the repository at this point in the history
This can happen when the target number of workers exceeds the number of
old / running workers.
  • Loading branch information
ab committed Apr 8, 2014
1 parent 461b0f0 commit e848a89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/einhorn/command.rb
Expand Up @@ -438,8 +438,8 @@ def self.cull
if excess > 0
Einhorn.log_info("Smooth upgrade: killing off #{excess} old workers.", :upgrade)
signal_all("USR2", old_workers.take(excess))
elsif excess < 0
Einhorn.log_error("Smooth upgrade: somehow excess is #{excess}!", :upgrade)
else
Einhorn.log_debug("Not killing old workers, as excess is #{excess}.")
end
end

Expand Down

0 comments on commit e848a89

Please sign in to comment.