diff options
author | Eric Wong <normalperson@yhbt.net> | 2011-11-09 10:06:39 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2011-11-09 10:06:39 +0000 |
commit | 265f3d32126cf2a31587a6021494f528bbdf8171 (patch) | |
tree | 399ba60433917b4a56f5e823131f27145f1fa7d8 | |
parent | 4b8bff9f4c90e6eb442c82b6f125279600311bf4 (diff) | |
download | mogilefs-client-265f3d32126cf2a31587a6021494f528bbdf8171.tar.gz |
Found with 1.9.3
-rw-r--r-- | lib/mogilefs/backend.rb | 1 | ||||
-rw-r--r-- | test/test_mogilefs_integration_large_pipe.rb | 4 |
2 files changed, 2 insertions, 3 deletions
diff --git a/lib/mogilefs/backend.rb b/lib/mogilefs/backend.rb index 7e984e5..b0d2f5b 100644 --- a/lib/mogilefs/backend.rb +++ b/lib/mogilefs/backend.rb @@ -164,7 +164,6 @@ class MogileFS::Backend # Performs the +cmd+ request with +args+. def do_request(cmd, args, idempotent = false) - response = nil request = make_request cmd, args @mutex.synchronize do begin diff --git a/test/test_mogilefs_integration_large_pipe.rb b/test/test_mogilefs_integration_large_pipe.rb index afc252e..49b9397 100644 --- a/test/test_mogilefs_integration_large_pipe.rb +++ b/test/test_mogilefs_integration_large_pipe.rb @@ -40,8 +40,8 @@ class TestMogileFSLargePipe< TestMogIntegration File.unlink(tmp_path) x!("mkfifo", tmp_path) pid = fork do - File.open(tmp_path, "wb") do |w| - nr.times { w.write(junk) } + File.open(tmp_path, "wb") do |wr| + nr.times { wr.write(junk) } end end assert_equal(nr * junk.size, @client.store_file("fifo", nil, tmp_path)) |