summaryrefslogtreecommitdiff
path: root/src/mongo/db/exec/update.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/exec/update.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/exec/update.h')
-rw-r--r--src/mongo/db/exec/update.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mongo/db/exec/update.h b/src/mongo/db/exec/update.h
index f5dccd1c7e6..0755a6fbcff 100644
--- a/src/mongo/db/exec/update.h
+++ b/src/mongo/db/exec/update.h
@@ -141,6 +141,7 @@ public:
mutablebson::Document* doc,
bool isInternalRequest,
const NamespaceString& ns,
+ bool enforceOkForStorage,
UpdateStats* stats);
private:
@@ -192,6 +193,9 @@ private:
// Stats
UpdateStats _specificStats;
+ // True if updated documents should be validated with storage_validation::storageValid().
+ bool _enforceOkForStorage;
+
// If the update was in-place, we may see it again. This only matters if we're doing
// a multi-update; if we're not doing a multi-update we stop after one update and we
// won't see any more docs.