lib/mongo/operation/parallel_scan/command.rb in mongo-2.14.0 vs lib/mongo/operation/parallel_scan/command.rb in mongo-2.14.1
- old
+ new
@@ -35,11 +35,10 @@
if read_concern
sel[:readConcern] = Options::Mapper.transform_values_to_strings(
read_concern)
end
sel[:maxTimeMS] = max_time_ms if max_time_ms
- update_selector_for_read_pref(sel, connection)
- sel
+ add_read_preference_legacy(sel, connection)
end
def message(connection)
Protocol::Query.new(db_name, Database::COMMAND, command(connection), options(connection))
end