diff options
author | David Storch <david.storch@mongodb.com> | 2020-01-10 17:47:50 +0000 |
---|---|---|
committer | evergreen <evergreen@mongodb.com> | 2020-01-10 17:47:50 +0000 |
commit | d6dad3428ca5773f8fcb7e75767e4817f7a185dd (patch) | |
tree | ea7c56ab3433c3fda98b6448635bbf035724e0bc /src/mongo/db/exec/projection_node.h | |
parent | 91b99094e00ee534a4fa12c74c556bd2b21f9930 (diff) | |
download | mongo-d6dad3428ca5773f8fcb7e75767e4817f7a185dd.tar.gz |
SERVER-37791 Prevent exclusion of non-existent field from affecting field order.
Exclusion of an existing field can still affect the field
order produced by subsequent $project or $addFields stages.
Changing this is left as future work.
Diffstat (limited to 'src/mongo/db/exec/projection_node.h')
-rw-r--r-- | src/mongo/db/exec/projection_node.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/mongo/db/exec/projection_node.h b/src/mongo/db/exec/projection_node.h index 95ef83350cb..09c191226a1 100644 --- a/src/mongo/db/exec/projection_node.h +++ b/src/mongo/db/exec/projection_node.h @@ -162,12 +162,6 @@ protected: // Whether this node or any child of this node contains a computed field. bool _subtreeContainsComputedFields{false}; - // TODO SERVER-37791: This flag is only necessary due to a bug in exclusion semantics. - // Whether to project fields not present in the input document. For example, for the - // specification {a: 0, b: 0}, if 'b' is not present in the input document, it will be projected - // into the output document as an empty/missing Value. - bool _projectMissingFields{false}; - private: // Iterates 'inputDoc' for each projected field, adding to or removing from 'outputDoc'. Also // copies over enough information to preserve the structure of the incoming document for the |