lib/mongo/operation/parallel_scan/op_msg.rb in mongo-2.12.4 vs lib/mongo/operation/parallel_scan/op_msg.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 # @@ -26,10 +26,10 @@ include ExecutableTransactionLabel include PolymorphicResult private - def selector(server) + def selector(connection) sel = { :parallelCollectionScan => coll_name, :numCursors => cursor_count } sel[:maxTimeMS] = max_time_ms if max_time_ms if read_concern sel[:readConcern] = Options::Mapper.transform_values_to_strings( read_concern)