diff options
author | Irina Yatsenko <irina.yatsenko@mongodb.com> | 2021-07-07 15:44:54 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-07-16 05:38:55 +0000 |
commit | beeab6beaf18232e52bb3094f5f31fe83fbae2a4 (patch) | |
tree | dce5b9fefa813283212757dcf16f59e4b8bffe9e /src/mongo/db/curop.h | |
parent | 23ecc48f89f4ec03d7b42e637c5969802efdb261 (diff) | |
download | mongo-beeab6beaf18232e52bb3094f5f31fe83fbae2a4.tar.gz |
SERVER-57391 Return error response to OP_QUERY and OP_GET_MORE messages
Diffstat (limited to 'src/mongo/db/curop.h')
-rw-r--r-- | src/mongo/db/curop.h | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/src/mongo/db/curop.h b/src/mongo/db/curop.h index 904f41ff73a..d95b56e41e9 100644 --- a/src/mongo/db/curop.h +++ b/src/mongo/db/curop.h @@ -512,13 +512,6 @@ public: } /** - * Returns true if this CurOp represents a non-command OP_QUERY request. - */ - bool isLegacyQuery() const { - return _networkOp == NetworkOp::dbQuery && !isCommand(); - } - - /** * Returns true if the current operation is known to be a command. */ bool isCommand() const { @@ -855,18 +848,4 @@ private: TickSource* _tickSource = nullptr; }; - -/** - * Upconverts a legacy query object such that it matches the format of the find command. - */ -BSONObj upconvertQueryEntry(const BSONObj& query, - const NamespaceString& nss, - int ntoreturn, - int ntoskip); - -/** - * Generates a getMore command object from the specified namespace, cursor ID and batchsize. - */ -BSONObj upconvertGetMoreEntry(const NamespaceString& nss, CursorId cursorId, int ntoreturn); - } // namespace mongo |