summaryrefslogtreecommitdiff
path: root/src/mongo/db/clientcursor.h
diff options
context:
space:
mode:
authorDavid Storch <david.storch@mongodb.com>2020-06-24 18:38:08 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-07-09 14:14:43 +0000
commita58d7ea75368b103a7f493c0ff6035b9a099b88d (patch)
tree971c74fde502d5549d46b5e63bcc7b854fb78f32 /src/mongo/db/clientcursor.h
parentc37aaac0696c3b4a69df191bd991e474824e43b1 (diff)
downloadmongo-a58d7ea75368b103a7f493c0ff6035b9a099b88d.tar.gz
SERVER-48477 Make PlanExecutor interface more generic
After this change, the interface is sensible for both the classic and SBE engines (with the exception of 'getRootStage()' which is left as future work).
Diffstat (limited to 'src/mongo/db/clientcursor.h')
-rw-r--r--src/mongo/db/clientcursor.h18
1 files changed, 2 insertions, 16 deletions
diff --git a/src/mongo/db/clientcursor.h b/src/mongo/db/clientcursor.h
index a9665b878c2..1536921d8e1 100644
--- a/src/mongo/db/clientcursor.h
+++ b/src/mongo/db/clientcursor.h
@@ -61,8 +61,7 @@ struct ClientCursorParams {
WriteConcernOptions writeConcernOptions,
repl::ReadConcernArgs readConcernArgs,
BSONObj originatingCommandObj,
- PrivilegeVector originatingPrivileges,
- bool needsMerge)
+ PrivilegeVector originatingPrivileges)
: exec(std::move(planExecutor)),
nss(std::move(nss)),
writeConcernOptions(std::move(writeConcernOptions)),
@@ -71,8 +70,7 @@ struct ClientCursorParams {
? exec->getCanonicalQuery()->getQueryRequest().getOptions()
: 0),
originatingCommandObj(originatingCommandObj.getOwned()),
- originatingPrivileges(std::move(originatingPrivileges)),
- needsMerge(needsMerge) {
+ originatingPrivileges(std::move(originatingPrivileges)) {
while (authenticatedUsersIter.more()) {
authenticatedUsers.emplace_back(authenticatedUsersIter.next());
}
@@ -100,7 +98,6 @@ struct ClientCursorParams {
int queryOptions = 0;
BSONObj originatingCommandObj;
PrivilegeVector originatingPrivileges;
- const bool needsMerge;
};
/**
@@ -152,10 +149,6 @@ public:
return _writeConcernOptions;
}
- bool needsMerge() const {
- return _needsMerge;
- }
-
/**
* Returns a pointer to the underlying query plan executor. All cursors manage a PlanExecutor,
* so this method never returns a null pointer.
@@ -387,13 +380,6 @@ private:
// See the QueryOptions enum in dbclientinterface.h.
const int _queryOptions = 0;
- // The value of a flag specified on the originating command which indicates whether the result
- // of this cursor will be consumed by a merging node (mongos or a mongod selected to perform a
- // merge). Note that this flag is only set for aggregate() commands, and not for find()
- // commands. It is therefore possible that 'needsMerge' is false when in fact there will be a
- // merge performed.
- const bool _needsMerge;
-
// Unused maxTime budget for this cursor.
Microseconds _leftoverMaxTimeMicros = Microseconds::max();