new_file/stream: correct declare errors array correctly
authorEric Wong <normalperson@yhbt.net>
Tue, 10 Sep 2013 01:10:55 +0000 (10 01:10 +0000)
committerEric Wong <normalperson@yhbt.net>
Tue, 10 Sep 2013 01:10:55 +0000 (10 01:10 +0000)
This caused NameError failures when we ran out of file descriptors.

lib/mogilefs/new_file/stream.rb

index 32bd339..a71be74 100644 (file)
@@ -14,6 +14,7 @@ class MogileFS::NewFile::Stream
     @opts = opts
     @md5 = nil
     @bytes_uploaded = 0
+    error = nil
     dests.each do |devid, path|
       begin
         uri = URI.parse(path)