diff options
author | Justin Seyster <justin.seyster@mongodb.com> | 2017-05-26 13:44:54 -0400 |
---|---|---|
committer | Justin Seyster <justin.seyster@mongodb.com> | 2017-05-26 13:44:54 -0400 |
commit | 90fd8a19000b5f96983f068e6380c1f6bd824b69 (patch) | |
tree | 483ef907d8710c2a7b7ff2fdedbc1cee5b33b24f /src/mongo/db/update/modifier_table.cpp | |
parent | 5e964d9b0f1e79f9e3d556ce8962340573790a54 (diff) | |
download | mongo-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.cpp | 3 |
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; } |