summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mongo/db/commands/getmore_cmd.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mongo/db/commands/getmore_cmd.cpp b/src/mongo/db/commands/getmore_cmd.cpp
index d19d04e2db6..0634c8d81f1 100644
--- a/src/mongo/db/commands/getmore_cmd.cpp
+++ b/src/mongo/db/commands/getmore_cmd.cpp
@@ -296,7 +296,9 @@ public:
opCtx->setDeadlineAfterNowBy(cursor->getLeftoverMaxTimeMicros());
}
}
- opCtx->checkForInterrupt(); // May trigger maxTimeAlwaysTimeOut fail point.
+ if (!cursor->isAwaitData()) {
+ opCtx->checkForInterrupt(); // May trigger maxTimeAlwaysTimeOut fail point.
+ }
PlanExecutor* exec = cursor->getExecutor();
exec->reattachToOperationContext(opCtx);