lib/mongo/bulk_write/combineable.rb in mongo-2.4.3 vs lib/mongo/bulk_write/combineable.rb in mongo-2.5.0.beta
- old
+ new
@@ -26,10 +26,14 @@
attr_reader :requests
# @return [ true, false ] has_collation Whether one or more operations has a collation defined.
attr_reader :has_collation
+ # @return [ true, false ] has_array_filters Whether one or more operations specifies an array
+ # filters option.
+ attr_reader :has_array_filters
+
# Create the ordered combiner.
#
# @api private
#
# @example Create the ordered combiner.
@@ -39,9 +43,10 @@
#
# @since 2.1.0
def initialize(requests)
@requests = requests
@has_collation = false
+ @has_array_filters = false
end
private
def combine_requests(ops)