diff options
author | Arun Banala <arun.banala@mongodb.com> | 2023-04-28 13:58:01 -0700 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2023-05-03 00:18:32 +0000 |
commit | adc2eea4112bab6f94d52cd22c2d7cf908ec3071 (patch) | |
tree | 86ba6bed895111cd8ae0ba95c07b8c254b64a2e1 /src/mongo/db/commands/run_aggregate.cpp | |
parent | 57eae3a1e7bab72962f89ede3019d2e0b4527690 (diff) | |
download | mongo-adc2eea4112bab6f94d52cd22c2d7cf908ec3071.tar.gz |
SERVER-65369 Remove $_generateV2ResumeTokens parameter from aggregate command after 7.0
Diffstat (limited to 'src/mongo/db/commands/run_aggregate.cpp')
-rw-r--r-- | src/mongo/db/commands/run_aggregate.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/mongo/db/commands/run_aggregate.cpp b/src/mongo/db/commands/run_aggregate.cpp index 9d67caf2df3..b03eae16dc9 100644 --- a/src/mongo/db/commands/run_aggregate.cpp +++ b/src/mongo/db/commands/run_aggregate.cpp @@ -451,15 +451,6 @@ boost::intrusive_ptr<ExpressionContext> makeExpressionContext( allowDiskUseByDefault.load()); expCtx->tempDir = storageGlobalParams.dbpath + "/_tmp"; expCtx->collationMatchesDefault = collationMatchesDefault; - - // If the request explicitly specified NOT to use v2 resume tokens for change streams, set this - // on the expCtx. This can happen if a the request originated from 6.0 mongos, or in test mode. - if (request.getGenerateV2ResumeTokens().has_value()) { - // We only ever expect an explicit $_generateV2ResumeTokens to be false. - uassert(6528200, "Invalid request for v2 tokens", !request.getGenerateV2ResumeTokens()); - expCtx->changeStreamTokenVersion = 1; - } - return expCtx; } |