diff options
author | auto-revert-processor <dev-prod-dag@mongodb.com> | 2023-04-20 02:55:12 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2023-04-20 03:42:38 +0000 |
commit | 77c517c92f0a24ae67e1a5949882570da9a98934 (patch) | |
tree | ab209a582085ca3be546bb5004e22fdd1fac687a /src/mongo/db/commands/getmore_cmd.cpp | |
parent | 46fbe5b380dfaa32ee22b137162d90db9debd23e (diff) | |
download | mongo-77c517c92f0a24ae67e1a5949882570da9a98934.tar.gz |
Revert "SERVER-75470 Reject change stream getMore commands after a split or merge has been committed"
This reverts commit d674d78896b572797df816a093ab8682ab860eca.
Diffstat (limited to 'src/mongo/db/commands/getmore_cmd.cpp')
-rw-r--r-- | src/mongo/db/commands/getmore_cmd.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/mongo/db/commands/getmore_cmd.cpp b/src/mongo/db/commands/getmore_cmd.cpp index 796f4efd621..40e307e999c 100644 --- a/src/mongo/db/commands/getmore_cmd.cpp +++ b/src/mongo/db/commands/getmore_cmd.cpp @@ -56,7 +56,6 @@ #include "mongo/db/repl/oplog.h" #include "mongo/db/repl/replication_coordinator.h" #include "mongo/db/repl/speculative_majority_read_info.h" -#include "mongo/db/repl/tenant_migration_access_blocker_util.h" #include "mongo/db/service_context.h" #include "mongo/db/stats/counters.h" #include "mongo/db/stats/resource_consumption_metrics.h" @@ -589,12 +588,6 @@ public: curOp->setGenericCursor_inlock(cursorPin->toGenericCursor()); } - // If this is a change stream cursor, check whether the tenant has migrated elsewhere. - if (cursorPin->getExecutor()->getPostBatchResumeToken()["_data"]) { - tenant_migration_access_blocker::assertCanGetMoreChangeStream(opCtx, - _cmd.getDbName()); - } - // If the 'failGetMoreAfterCursorCheckout' failpoint is enabled, throw an exception with // the given 'errorCode' value, or ErrorCodes::InternalError if 'errorCode' is omitted. failGetMoreAfterCursorCheckout.executeIf( |