about summary refs log tree commit homepage
path: root/lib/mogilefs/copy_stream.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/mogilefs/copy_stream.rb')
-rw-r--r--lib/mogilefs/copy_stream.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/mogilefs/copy_stream.rb b/lib/mogilefs/copy_stream.rb
index 01735cd..b928031 100644
--- a/lib/mogilefs/copy_stream.rb
+++ b/lib/mogilefs/copy_stream.rb
@@ -18,6 +18,7 @@ module MogileFS::CopyStream # :nodoc:
         written += dst.write(buf)
       end
     end
+    dst.flush if dst.respond_to?(:flush)
     written
     ensure
       src_io.close if String === src