summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharlie Swanson <charlie.swanson@mongodb.com>2018-08-27 13:00:01 -0400
committerCharlie Swanson <charlie.swanson@mongodb.com>2018-08-27 17:45:59 -0400
commit4d124b7f3634da1fc5230bf18662a1004054a8ff (patch)
tree2a8ad233cd68331ff572d05854f4aeb922859ea1
parent4422204cd233c1fd0e70b71223feb62d3df54a18 (diff)
downloadmongo-4d124b7f3634da1fc5230bf18662a1004054a8ff.tar.gz
SERVER-36781 Initialize _execContext in $mergeCursors stage
-rw-r--r--src/mongo/db/pipeline/document_source_merge_cursors.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/pipeline/document_source_merge_cursors.h b/src/mongo/db/pipeline/document_source_merge_cursors.h
index 7f033fb8c15..8a2db705ab0 100644
--- a/src/mongo/db/pipeline/document_source_merge_cursors.h
+++ b/src/mongo/db/pipeline/document_source_merge_cursors.h
@@ -161,7 +161,7 @@ private:
// The ExecContext is needed because if we're a tailable, awaitData cursor, we only want to
// 'await data' if we 1) are in a getMore and 2) don't already have data to return. This context
// allows us to determine which situation we're in.
- RouterExecStage::ExecContext _execContext;
+ RouterExecStage::ExecContext _execContext = RouterExecStage::ExecContext::kInitialFind;
};
} // namespace mongo