diff options
author | Ted Tuckman <ted.tuckman@mongodb.com> | 2019-03-05 11:22:06 -0500 |
---|---|---|
committer | Ted Tuckman <ted.tuckman@mongodb.com> | 2019-03-26 09:55:54 -0400 |
commit | 1053cf8347e7aeaca24d47039980c765dae75d5b (patch) | |
tree | 10a3a00d7a72137048cb8ad79339f614dca1adbb /src/mongo/db/update/current_date_node.h | |
parent | 233a4f7cfdf13fa0cfa55c6209644f7e3dbbed4b (diff) | |
download | mongo-1053cf8347e7aeaca24d47039980c765dae75d5b.tar.gz |
SERVER-39257 Implement visitor pattern for UpdateNode
Diffstat (limited to 'src/mongo/db/update/current_date_node.h')
-rw-r--r-- | src/mongo/db/update/current_date_node.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mongo/db/update/current_date_node.h b/src/mongo/db/update/current_date_node.h index b2e1963c632..7872dadce9a 100644 --- a/src/mongo/db/update/current_date_node.h +++ b/src/mongo/db/update/current_date_node.h @@ -48,6 +48,10 @@ public: void setCollator(const CollatorInterface* collator) final {} + void acceptVisitor(UpdateNodeVisitor* visitor) final { + visitor->visit(this); + } + protected: ModifyResult updateExistingElement(mutablebson::Element* element, std::shared_ptr<FieldRef> elementPath) const final; |