Skip to content

Commit 467305f

Browse files
committed
RUBY-1104 Operations are executed on servers directly now
1 parent 7ae74df commit 467305f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/mongo/cluster/cursor_reaper.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,12 +147,12 @@ def kill_cursors
147147
if server.features.find_command_enabled?
148148
Cursor::Builder::KillCursorsCommand.update_cursors(op_spec, active_cursors_copy.to_a)
149149
if Cursor::Builder::KillCursorsCommand.get_cursors_list(op_spec).size > 0
150-
Operation::Commands::Command.new(op_spec).execute(server.context)
150+
Operation::Commands::Command.new(op_spec).execute(server)
151151
end
152152
else
153153
Cursor::Builder::OpKillCursors.update_cursors(op_spec, active_cursors_copy.to_a)
154154
if Cursor::Builder::OpKillCursors.get_cursors_list(op_spec).size > 0
155-
Operation::KillCursors.new(op_spec).execute(server.context)
155+
Operation::KillCursors.new(op_spec).execute(server)
156156
end
157157
end
158158
end

0 commit comments

Comments
 (0)