lib/mongo/operation/drop_index/command.rb in mongo-2.12.4 vs lib/mongo/operation/drop_index/command.rb in mongo-2.13.0.beta1

- old
+ new

@@ -1,6 +1,6 @@ -# Copyright (C) 2018-2019 MongoDB, Inc. +# Copyright (C) 2018-2020 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 # @@ -27,15 +27,15 @@ include Limited include WriteConcernSupported private - def selector(server = nil) + def selector(connection) { :dropIndexes => coll_name, :index => index_name } end - def message(server) - Protocol::Query.new(db_name, Database::COMMAND, command(server), options(server)) + def message(connection) + Protocol::Query.new(db_name, Database::COMMAND, command(connection), options(connection)) end end end end end