lib/mongo/operation/explain/legacy.rb in mongo-2.12.4 vs lib/mongo/operation/explain/legacy.rb in mongo-2.13.0.beta1
- old
+ new
@@ -1,6 +1,6 @@
-# Copyright (C) 2015-2019 MongoDB, Inc.
+# Copyright (C) 2015-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,11 +27,11 @@
include ReadPreferenceSupported
include PolymorphicResult
private
- def message(server)
- Protocol::Query.new(db_name, coll_name, command(server), options(server))
+ def message(connection)
+ Protocol::Query.new(db_name, coll_name, command(connection), options(connection))
end
end
end
end
end