summaryrefslogtreecommitdiff
path: root/src/mongo/db/matcher/match_details.cpp
diff options
context:
space:
mode:
authorTess Avitabile <tess.avitabile@mongodb.com>2016-11-17 14:09:29 -0500
committerTess Avitabile <tess.avitabile@mongodb.com>2016-11-17 14:09:46 -0500
commit5c3f83de911a2d7a512954349925b3c6056b886e (patch)
treeeb85a00682c39e7a7270b5beb4053b1ed9a1d5f8 /src/mongo/db/matcher/match_details.cpp
parentd9c598ac6d5f79cde4d5439eb21f773b025e917f (diff)
downloadmongo-5c3f83de911a2d7a512954349925b3c6056b886e.tar.gz
Revert "SERVER-14662 Reject ambiguous positional projections and updates"
This reverts commit 2eea3f09aea9c92df9aa0d4e47840869bf04d7b8.
Diffstat (limited to 'src/mongo/db/matcher/match_details.cpp')
-rw-r--r--src/mongo/db/matcher/match_details.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/mongo/db/matcher/match_details.cpp b/src/mongo/db/matcher/match_details.cpp
index 3d221a91562..6675bf08e15 100644
--- a/src/mongo/db/matcher/match_details.cpp
+++ b/src/mongo/db/matcher/match_details.cpp
@@ -38,7 +38,7 @@ namespace mongo {
using std::string;
-MatchDetails::MatchDetails() : _elemMatchKeyRequested(false), _isValid(true) {
+MatchDetails::MatchDetails() : _elemMatchKeyRequested() {
resetOutput();
}
@@ -58,9 +58,6 @@ std::string MatchDetails::elemMatchKey() const {
void MatchDetails::setElemMatchKey(const std::string& elemMatchKey) {
if (_elemMatchKeyRequested) {
- if (_elemMatchKey) {
- _isValid = false;
- }
_elemMatchKey.reset(new std::string(elemMatchKey));
}
}