summaryrefslogtreecommitdiff
path: root/src/mongo/db/update/update_driver.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/update/update_driver.h')
-rw-r--r--src/mongo/db/update/update_driver.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mongo/db/update/update_driver.h b/src/mongo/db/update/update_driver.h
index 94d1f73c8d4..9949f43787c 100644
--- a/src/mongo/db/update/update_driver.h
+++ b/src/mongo/db/update/update_driver.h
@@ -195,6 +195,13 @@ public:
_containsDotsAndDollarsField = containsDotsAndDollarsField;
}
+ bool bypassEmptyTsReplacement() const {
+ return _bypassEmptyTsReplacement;
+ }
+ void setBypassEmptyTsReplacement(bool bypassEmptyTsReplacement) {
+ _bypassEmptyTsReplacement = bypassEmptyTsReplacement;
+ }
+
/**
* Serialize the update expression to Value. Output of this method is expected to, when parsed,
* produce a logically equivalent update expression.
@@ -238,6 +245,8 @@ private:
// True if this update comes from an oplog application.
bool _fromOplogApplication = false;
+ bool _bypassEmptyTsReplacement = false;
+
// True if this update is guaranteed not to contain dots or dollars fields and should skip the
// check.
bool _skipDotsDollarsCheck = false;