summaryrefslogtreecommitdiff
path: root/src/mongo/db/query/canonical_query.cpp
diff options
context:
space:
mode:
authorDavid Storch <david.storch@mongodb.com>2021-10-19 14:30:46 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-10-19 15:32:21 +0000
commitb901d772a793a3aa73acb55c30242e1d000ad0d7 (patch)
treed466e07e9c158ea76f82df11a600717f0024b11e /src/mongo/db/query/canonical_query.cpp
parent13d81879027e51742205433d4b3573a0c9dbeaec (diff)
downloadmongo-b901d772a793a3aa73acb55c30242e1d000ad0d7.tar.gz
SERVER-15301 Remove query options bit vector from CanonicalQuery/ClientCursor
Diffstat (limited to 'src/mongo/db/query/canonical_query.cpp')
-rw-r--r--src/mongo/db/query/canonical_query.cpp17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/mongo/db/query/canonical_query.cpp b/src/mongo/db/query/canonical_query.cpp
index cafabb0de38..32ea6e269cd 100644
--- a/src/mongo/db/query/canonical_query.cpp
+++ b/src/mongo/db/query/canonical_query.cpp
@@ -475,23 +475,6 @@ Status CanonicalQuery::isValidNormalized(const MatchExpression* root) {
return Status::OK();
}
-int CanonicalQuery::getOptions() const {
- int options = 0;
- if (_findCommand->getTailable()) {
- options |= QueryOption_CursorTailable;
- }
- if (_findCommand->getAwaitData()) {
- options |= QueryOption_AwaitData;
- }
- if (_findCommand->getNoCursorTimeout()) {
- options |= QueryOption_NoCursorTimeout;
- }
- if (_findCommand->getAllowPartialResults()) {
- options |= QueryOption_PartialResults;
- }
- return options;
-}
-
std::string CanonicalQuery::toString() const {
str::stream ss;
ss << "ns=" << _findCommand->getNamespaceOrUUID().nss().value_or(NamespaceString()).ns();