summaryrefslogtreecommitdiff
path: root/src/mongo/db/pipeline/document_source_cursor.cpp
diff options
context:
space:
mode:
authorMatthew Russotto <matthew.russotto@10gen.com>2017-10-09 17:57:02 -0400
committerMatthew Russotto <matthew.russotto@10gen.com>2017-10-11 08:31:16 -0400
commit767e041931e73ae4f7a0047114becf5be803f3ab (patch)
tree6810e9485838564a5681bb2d8984e7374ec2eb94 /src/mongo/db/pipeline/document_source_cursor.cpp
parent45d35fe3fcefefe1282b8e0dfc8cd76cb247951d (diff)
downloadmongo-767e041931e73ae4f7a0047114becf5be803f3ab.tar.gz
SERVER-29609 Enable updateLookup for sharded change streams.
Diffstat (limited to 'src/mongo/db/pipeline/document_source_cursor.cpp')
-rw-r--r--src/mongo/db/pipeline/document_source_cursor.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/pipeline/document_source_cursor.cpp b/src/mongo/db/pipeline/document_source_cursor.cpp
index 3720c6213df..90449e1b073 100644
--- a/src/mongo/db/pipeline/document_source_cursor.cpp
+++ b/src/mongo/db/pipeline/document_source_cursor.cpp
@@ -106,7 +106,7 @@ void DocumentSourceCursor::loadBatch() {
// Furthermore, if we need to return the latest oplog time (in the tailable and
// needs-merge case), batching will result in a wrong time.
if (shouldWaitForInserts(pExpCtx->opCtx) ||
- (pExpCtx->isTailable() && pExpCtx->needsMerge) ||
+ (pExpCtx->isTailableAwaitData() && pExpCtx->needsMerge) ||
memUsageBytes > internalDocumentSourceCursorBatchSizeBytes.load()) {
// End this batch and prepare PlanExecutor for yielding.
_exec->saveState();
@@ -115,7 +115,7 @@ void DocumentSourceCursor::loadBatch() {
}
// Special case for tailable cursor -- EOF doesn't preclude more results, so keep
// the PlanExecutor alive.
- if (state == PlanExecutor::IS_EOF && pExpCtx->isTailable()) {
+ if (state == PlanExecutor::IS_EOF && pExpCtx->isTailableAwaitData()) {
_exec->saveState();
return;
}