lib/mongo/grid/stream/write.rb in mongo-2.4.3 vs lib/mongo/grid/stream/write.rb in mongo-2.5.0.beta

- old
+ new

@@ -101,11 +101,11 @@ # # @since 2.1.0 def close ensure_open! update_length - files_collection.insert_one(file_info) + files_collection.insert_one(file_info, @options) @open = false file_id end # Get the write concern used when uploading. @@ -140,10 +140,10 @@ # # @return [ true ] True if the operation was aborted and the stream is closed. # # @since 2.1.0 def abort - fs.chunks_collection.find(:files_id => file_id).delete_many + fs.chunks_collection.find({ :files_id => file_id }, @options).delete_many @open = false || true end private