about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2013-02-21 20:10:43 +0000
committerEric Wong <normalperson@yhbt.net>2013-02-21 20:10:43 +0000
commite3690296de22902e87901c1dca9b10b4a59b7a44 (patch)
treec6b3033bd4ae18f63b79569f4374a4e9ff172b56
parent3c73f6b434a4c226c09e31c6ba3b034cb314b3fb (diff)
downloadmogilefs-client-e3690296de22902e87901c1dca9b10b4a59b7a44.tar.gz
This bug was only introduced in
commit 3c73f6b434a4c226c09e31c6ba3b034cb314b3fb
-rw-r--r--lib/mogilefs/backend.rb2
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 ]