diff options
author | David Storch <david.storch@mongodb.com> | 2021-10-13 14:57:30 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-10-13 15:56:24 +0000 |
commit | 5462b81c4a678b63c340bfa51640da3fecad0358 (patch) | |
tree | 2a765fd47e01e6e9817dbaea1ccd5b5a9d25a229 /src/mongo/db/dbmessage.cpp | |
parent | 9172b9b45c148eed11714912b140f89cf763d9e2 (diff) | |
download | mongo-5462b81c4a678b63c340bfa51640da3fecad0358.tar.gz |
SERVER-59300 Make AsyncDBClient use OP_MSG rather than OP_QUERY for isMaster
Removing any lingering uses of OP_QUERY will be helpful in
order to eventually remove the final traces of OP_QUERY
support from the code base. Changing the AsyncDBClient to
use the "hello" command rather than "isMaster" is left as a
future improvement.
Diffstat (limited to 'src/mongo/db/dbmessage.cpp')
-rw-r--r-- | src/mongo/db/dbmessage.cpp | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/mongo/db/dbmessage.cpp b/src/mongo/db/dbmessage.cpp index 9e45805d521..a3ff583ba24 100644 --- a/src/mongo/db/dbmessage.cpp +++ b/src/mongo/db/dbmessage.cpp @@ -138,24 +138,6 @@ T DbMessage::readAndAdvance() { return t; } - -Message makeDeprecatedQueryMessage(StringData ns, - BSONObj query, - int nToReturn, - int nToSkip, - const BSONObj* fieldsToReturn, - int queryOptions) { - return makeMessage(dbQuery, [&](BufBuilder& b) { - b.appendNum(queryOptions); - b.appendStr(ns); - b.appendNum(nToSkip); - b.appendNum(nToReturn); - query.appendSelfToBufBuilder(b); - if (fieldsToReturn) - fieldsToReturn->appendSelfToBufBuilder(b); - }); -} - Message makeDeprecatedInsertMessage(StringData ns, const BSONObj* objs, size_t count, int flags) { return makeMessage(dbInsert, [&](BufBuilder& b) { int reservedFlags = 0; |