summaryrefslogtreecommitdiff
path: root/src/mongo/shell/encrypted_dbclient_base.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/shell/encrypted_dbclient_base.cpp')
-rw-r--r--src/mongo/shell/encrypted_dbclient_base.cpp24
1 files changed, 14 insertions, 10 deletions
diff --git a/src/mongo/shell/encrypted_dbclient_base.cpp b/src/mongo/shell/encrypted_dbclient_base.cpp
index e27b0e40a75..71de4965e2a 100644
--- a/src/mongo/shell/encrypted_dbclient_base.cpp
+++ b/src/mongo/shell/encrypted_dbclient_base.cpp
@@ -505,8 +505,12 @@ JS::Value EncryptedDBClientBase::getCollection() const {
return _collection.get();
}
+std::unique_ptr<DBClientCursor> EncryptedDBClientBase::find(FindCommandRequest findRequest,
+ const ReadPreferenceSetting& readPref) {
+ return _conn->find(std::move(findRequest), readPref);
+}
-std::unique_ptr<DBClientCursor> EncryptedDBClientBase::query(
+std::unique_ptr<DBClientCursor> EncryptedDBClientBase::query_DEPRECATED(
const NamespaceStringOrUUID& nsOrUuid,
const BSONObj& filter,
const Query& querySettings,
@@ -516,15 +520,15 @@ std::unique_ptr<DBClientCursor> EncryptedDBClientBase::query(
int queryOptions,
int batchSize,
boost::optional<BSONObj> readConcernObj) {
- return _conn->query(nsOrUuid,
- filter,
- querySettings,
- limit,
- nToSkip,
- fieldsToReturn,
- queryOptions,
- batchSize,
- readConcernObj);
+ return _conn->query_DEPRECATED(nsOrUuid,
+ filter,
+ querySettings,
+ limit,
+ nToSkip,
+ fieldsToReturn,
+ queryOptions,
+ batchSize,
+ readConcernObj);
}
bool EncryptedDBClientBase::isFailed() const {