lib/mongo/operation/command/op_msg.rb in mongo-2.17.4 vs lib/mongo/operation/command/op_msg.rb in mongo-2.18.0.beta1
- old
+ new
@@ -23,9 +23,15 @@
#
# @api private
#
# @since 2.5.2
class OpMsg < OpMsgBase
+
+ def selector(connection)
+ spec[:selector].dup.tap do |sel|
+ sel[:comment] = spec[:comment] unless spec[:comment].nil?
+ end
+ end
end
end
end
end