summaryrefslogtreecommitdiff
path: root/src/mongo/db/update/log_builder.h
diff options
context:
space:
mode:
authorJustin Seyster <justin.seyster@mongodb.com>2017-12-14 15:21:10 -0500
committerJustin Seyster <justin.seyster@mongodb.com>2017-12-14 15:37:19 -0500
commit3b116b0dc632a0533c8b76ddbf02186e4bf6774e (patch)
tree2f57de2f0df1acac0e0c9cae85b492b7b8ec3216 /src/mongo/db/update/log_builder.h
parentc0ebce4abf9b0cfd4271767fa062ea2d5b486554 (diff)
downloadmongo-3b116b0dc632a0533c8b76ddbf02186e4bf6774e.tar.gz
SERVER-30854 Remove ModifierInterface update code.
We left the deleted update system in 3.6 to support upgrades from 3.4, but newer versions will always use the new UpdateNode update system. Fun fact: this commit deletes more lines than were inserted by the previous 100 commits.
Diffstat (limited to 'src/mongo/db/update/log_builder.h')
-rw-r--r--src/mongo/db/update/log_builder.h13
1 files changed, 4 insertions, 9 deletions
diff --git a/src/mongo/db/update/log_builder.h b/src/mongo/db/update/log_builder.h
index 9d7b1954365..60287ecfa92 100644
--- a/src/mongo/db/update/log_builder.h
+++ b/src/mongo/db/update/log_builder.h
@@ -34,17 +34,12 @@
namespace mongo {
/**
- * There are two update subsystems in MongoDB with slightly different semantics.
+ * Previously, there were multiple supported versions of the update language.
*/
enum class UpdateSemantics {
- // The update system that was in use up until v3.4, which is implemented in ModifierInterface
- // and its subclasses. When a single update adds multiple fields, those fields are added in the
- // same order as they are specified in the update document.
- kModifierInterface = 0,
-
- // The update system introduced in v3.6, which is implemented in UpdateNode and its subclassees.
- // When a single update adds multiple fields, those fields are added in lexicographic order by
- // field name. This system introduces support for arrayFilters and $[] syntax.
+ // The update system introduced in v3.6, and is the only supported system. When a single update
+ // adds multiple fields, those fields are added in lexicographic order by field name. This
+ // system introduces support for arrayFilters and $[] syntax.
kUpdateNode = 1,
// Must be last.