diff options
author | Saku Ytti <saku@ytti.fi> | 2015-02-22 13:05:37 +0200 |
---|---|---|
committer | Saku Ytti <saku@ytti.fi> | 2015-02-22 13:05:37 +0200 |
commit | aea148d771dca0e10ca1a2f5505446fbc689dad2 (patch) | |
tree | aaa17621cb03f2c63bd689310725059a8ba9e05d /lib/oxidized/source/csv.rb | |
parent | 33124f2570a4d8c4dfa153120dbc06b3c725a25c (diff) |
refactor HOLB prevention
Still not sure we want this. But previous one might have caused infinite
loop in #work.
Consider we have just 1 node all together, and our rotation interval is
more than our MAX_INTER_JOB_GAP, then we'd add @want to 2, instead of 1.
Now we want more threads than we have nodes, and 'while @jobs.size <
@jobs.want' will never be true
Diffstat (limited to 'lib/oxidized/source/csv.rb')
0 files changed, 0 insertions, 0 deletions