lib/mongo/operation/command/op_msg.rb in mongo-2.6.4 vs lib/mongo/operation/command/op_msg.rb in mongo-2.7.0.rc0
- old
+ new
@@ -1,6 +1,6 @@
-# Copyright (C) 2018 MongoDB, Inc.
+# Copyright (C) 2018-2019 MongoDB, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
@@ -19,35 +19,10 @@
# A MongoDB command operation sent as an op message.
#
# @api private
#
# @since 2.5.2
- class OpMsg
- include Specifiable
- include Executable
- include SessionsSupported
-
- # Execute the operation.
- #
- # @example
- # operation.execute(server)
- #
- # @param [ Mongo::Server ] server The server to send the operation to.
- #
- # @return [ Mongo::Operation::Result ] The operation result.
- #
- # @since 2.5.2
- def execute(server)
- result = Result.new(dispatch_message(server))
- process_result(result, server)
- result.validate!
- end
-
- private
-
- def message(server)
- Protocol::Msg.new(flags, options, command(server))
- end
+ class OpMsg < OpMsgBase
end
end
end
end