lib/mongo/operation/create/op_msg.rb in mongo-2.15.1 vs lib/mongo/operation/create/op_msg.rb in mongo-2.16.0.alpha1

- old
+ new

@@ -24,9 +24,16 @@ # @api private # # @since 2.5.2 class OpMsg < OpMsgBase include ExecutableTransactionLabel + + private + + def selector(connection) + # Collation is always supported on 3.6+ servers that would use OP_MSG. + spec[:selector].merge(collation: spec[:collation]).compact + end end end end end