summaryrefslogtreecommitdiff
path: root/src/mongo/db/update/modifier_table.cpp
diff options
context:
space:
mode:
authorJustin Seyster <justin.seyster@mongodb.com>2017-05-26 13:44:54 -0400
committerJustin Seyster <justin.seyster@mongodb.com>2017-05-26 13:44:54 -0400
commit90fd8a19000b5f96983f068e6380c1f6bd824b69 (patch)
tree483ef907d8710c2a7b7ff2fdedbc1cee5b33b24f /src/mongo/db/update/modifier_table.cpp
parent5e964d9b0f1e79f9e3d556ce8962340573790a54 (diff)
downloadmongo-90fd8a19000b5f96983f068e6380c1f6bd824b69.tar.gz
SERVER-28775 Create UnsetNode
Diffstat (limited to 'src/mongo/db/update/modifier_table.cpp')
-rw-r--r--src/mongo/db/update/modifier_table.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mongo/db/update/modifier_table.cpp b/src/mongo/db/update/modifier_table.cpp
index 008973980d8..d98e6f40e95 100644
--- a/src/mongo/db/update/modifier_table.cpp
+++ b/src/mongo/db/update/modifier_table.cpp
@@ -47,6 +47,7 @@
#include "mongo/db/ops/modifier_set.h"
#include "mongo/db/ops/modifier_unset.h"
#include "mongo/db/update/set_node.h"
+#include "mongo/db/update/unset_node.h"
#include "mongo/platform/unordered_map.h"
#include "mongo/stdx/memory.h"
@@ -181,6 +182,8 @@ std::unique_ptr<UpdateLeafNode> makeUpdateLeafNode(ModifierType modType) {
switch (modType) {
case MOD_SET:
return stdx::make_unique<SetNode>();
+ case MOD_UNSET:
+ return stdx::make_unique<UnsetNode>();
default:
return nullptr;
}