summaryrefslogtreecommitdiff
path: root/src/mongo/db/update/update_driver.h
diff options
context:
space:
mode:
authorLucas de Castro Borges <lucas@gnuabordo.com.br>2025-02-18 17:02:53 -0300
committerLucas de Castro Borges <lucas@gnuabordo.com.br>2025-02-18 17:02:53 -0300
commit959575a5ca598bf5f37fb5cebe7ed1d80d3d71f7 (patch)
treeacc8d60aedb12b70048e676e8a7349deb0010db8 /src/mongo/db/update/update_driver.h
parent76588293975fc059cf076779e4283e6ffaf8afff (diff)
New upstream version 6.0.20upstream
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;