diff options
author | Nick Zolnierz <nicholas.zolnierz@mongodb.com> | 2018-04-27 15:49:07 -0400 |
---|---|---|
committer | Nick Zolnierz <nicholas.zolnierz@mongodb.com> | 2018-05-01 13:47:50 -0400 |
commit | 46f72213f60bd74367a11aec7f02b38780ae7c3a (patch) | |
tree | 45018ee4a9531cb973f6fbb96c321ef44774278c /src/mongo/db/query/plan_executor.cpp | |
parent | 0d097ebf4d5c78e77d789dad3f8a45a942d37d47 (diff) | |
download | mongo-46f72213f60bd74367a11aec7f02b38780ae7c3a.tar.gz |
SERVER-34725: Group and count plan stages do not set the WorkingSetID output on PlanStage::DEAD state
Diffstat (limited to 'src/mongo/db/query/plan_executor.cpp')
-rw-r--r-- | src/mongo/db/query/plan_executor.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mongo/db/query/plan_executor.cpp b/src/mongo/db/query/plan_executor.cpp index 2deec30fd5f..3bc8ab9202d 100644 --- a/src/mongo/db/query/plan_executor.cpp +++ b/src/mongo/db/query/plan_executor.cpp @@ -628,6 +628,7 @@ PlanExecutor::ExecState PlanExecutor::getNextImpl(Snapshotted<BSONObj>* objOut, if (NULL != objOut) { BSONObj statusObj; + invariant(WorkingSet::INVALID_ID != id); WorkingSetCommon::getStatusMemberObject(*_workingSet, id, &statusObj); *objOut = Snapshotted<BSONObj>(SnapshotId(), statusObj); } |