diff options
author | Eric Wong <normalperson@yhbt.net> | 2013-02-21 20:10:43 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2013-02-21 20:10:43 +0000 |
commit | e3690296de22902e87901c1dca9b10b4a59b7a44 (patch) | |
tree | c6b3033bd4ae18f63b79569f4374a4e9ff172b56 | |
parent | 3c73f6b434a4c226c09e31c6ba3b034cb314b3fb (diff) | |
download | mogilefs-client-e3690296de22902e87901c1dca9b10b4a59b7a44.tar.gz |
This bug was only introduced in commit 3c73f6b434a4c226c09e31c6ba3b034cb314b3fb
-rw-r--r-- | lib/mogilefs/backend.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mogilefs/backend.rb b/lib/mogilefs/backend.rb index b9fc886..48f3a2e 100644 --- a/lib/mogilefs/backend.rb +++ b/lib/mogilefs/backend.rb @@ -144,7 +144,7 @@ class MogileFS::Backend io.timed_write(request, timeout) io rescue SystemCallError, MogileFS::RequestTruncatedError => err - tries ||= Hash.new { |tries,host| tries[host] = 0 } + tries ||= Hash.new { |hash,host| hash[host] = 0 } nr = tries[@active_host] += 1 if nr >= 2 @dead[@active_host] = [ Time.now, err ] |