lib/mongo/collection/view/aggregation.rb in mongo-2.11.6 vs lib/mongo/collection/view/aggregation.rb in mongo-2.12.0.rc0

- old
+ new

@@ -123,10 +123,10 @@ unless valid_server?(server) log_warn("Rerouting the Aggregation operation to the primary server - #{server.summary} is not suitable") server = cluster.next_primary(nil, session) end validate_collation!(server) - initial_query_op(session).execute(server) + initial_query_op(session).execute(server, client: client) end def validate_collation!(server) if options[:collation] && !server.features.collation_enabled? raise Error::UnsupportedCollation.new