summaryrefslogtreecommitdiff
path: root/src/mongo/db/dbmessage.h
diff options
context:
space:
mode:
authorDavid Storch <david.storch@mongodb.com>2021-10-13 14:57:30 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-10-13 15:56:24 +0000
commit5462b81c4a678b63c340bfa51640da3fecad0358 (patch)
tree2a765fd47e01e6e9817dbaea1ccd5b5a9d25a229 /src/mongo/db/dbmessage.h
parent9172b9b45c148eed11714912b140f89cf763d9e2 (diff)
downloadmongo-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.h')
-rw-r--r--src/mongo/db/dbmessage.h13
1 files changed, 3 insertions, 10 deletions
diff --git a/src/mongo/db/dbmessage.h b/src/mongo/db/dbmessage.h
index 3beb85991b3..ced00eef47e 100644
--- a/src/mongo/db/dbmessage.h
+++ b/src/mongo/db/dbmessage.h
@@ -416,16 +416,6 @@ Message makeMessage(NetworkOp op, Func&& bodyBuilder) {
return out;
}
-/**
- * Builds a legacy OP_QUERY message.
- */
-Message makeDeprecatedQueryMessage(StringData ns,
- BSONObj query,
- int nToReturn,
- int nToSkip,
- const BSONObj* fieldsToReturn,
- int queryOptions);
-
enum InsertOptions {
/**
* With muli-insert keep processing inserts if one fails.
@@ -435,6 +425,9 @@ enum InsertOptions {
/**
* Builds a legacy OP_INSERT message.
+ *
+ * The OP_INSERT command is no longer supported, so new callers of this function should not be
+ * added! This is currently retained for the limited purpose of unit testing.
*/
Message makeDeprecatedInsertMessage(StringData ns,
const BSONObj* objs,