class Mongo::Operation::KillCursors
A MongoDB killcursors operation.
@api private
@since 2.0.0
Public Instance Methods
execute(server)
click to toggle source
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.0.0
# File lib/mongo/operation/kill_cursors.rb, line 40 def execute(server) if server.features.op_msg_enabled? OpMsg.new(spec).execute(server) elsif server.features.find_command_enabled? Command.new(spec).execute(server) else Legacy.new(spec).execute(server) end end