summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/oplog_interface_remote.cpp
diff options
context:
space:
mode:
authorMatthew Russotto <matthew.russotto@10gen.com>2018-08-14 13:38:17 -0400
committerMatthew Russotto <matthew.russotto@10gen.com>2018-08-14 13:38:17 -0400
commit41005a73c8534953c4627b2a9d82a776e4276f1f (patch)
treea77a2466ab4d7ccc418880c44e0ba7ecca6f2ef0 /src/mongo/db/repl/oplog_interface_remote.cpp
parent63c586c5571176a5a68d7d18e836e38e0a905211 (diff)
downloadmongo-41005a73c8534953c4627b2a9d82a776e4276f1f.tar.gz
SERVER-36094 Make DBClientBase::query() take an NamespaceStringOrUUID
Diffstat (limited to 'src/mongo/db/repl/oplog_interface_remote.cpp')
-rw-r--r--src/mongo/db/repl/oplog_interface_remote.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mongo/db/repl/oplog_interface_remote.cpp b/src/mongo/db/repl/oplog_interface_remote.cpp
index e7e66beb2a4..ece945276e7 100644
--- a/src/mongo/db/repl/oplog_interface_remote.cpp
+++ b/src/mongo/db/repl/oplog_interface_remote.cpp
@@ -81,8 +81,9 @@ std::string OplogInterfaceRemote::toString() const {
std::unique_ptr<OplogInterface::Iterator> OplogInterfaceRemote::makeIterator() const {
const Query query = Query().sort(BSON("$natural" << -1));
const BSONObj fields = BSON("ts" << 1 << "h" << 1);
- return std::unique_ptr<OplogInterface::Iterator>(new OplogIteratorRemote(
- _getConnection()->query(_collectionName, query, 0, 0, &fields, 0, _batchSize)));
+ return std::unique_ptr<OplogInterface::Iterator>(
+ new OplogIteratorRemote(_getConnection()->query(
+ NamespaceString(_collectionName), query, 0, 0, &fields, 0, _batchSize)));
}
HostAndPort OplogInterfaceRemote::hostAndPort() const {