diff options
| author | Lucas de Castro Borges <lucas@gnuabordo.com.br> | 2025-02-18 17:02:53 -0300 |
|---|---|---|
| committer | Lucas de Castro Borges <lucas@gnuabordo.com.br> | 2025-02-18 17:02:53 -0300 |
| commit | 959575a5ca598bf5f37fb5cebe7ed1d80d3d71f7 (patch) | |
| tree | acc8d60aedb12b70048e676e8a7349deb0010db8 /src/mongo/db/update/object_replace_executor.h | |
| parent | 76588293975fc059cf076779e4283e6ffaf8afff (diff) | |
New upstream version 6.0.20upstream
Diffstat (limited to 'src/mongo/db/update/object_replace_executor.h')
| -rw-r--r-- | src/mongo/db/update/object_replace_executor.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/mongo/db/update/object_replace_executor.h b/src/mongo/db/update/object_replace_executor.h index f9c70bde919..3f4c787e588 100644 --- a/src/mongo/db/update/object_replace_executor.h +++ b/src/mongo/db/update/object_replace_executor.h @@ -65,10 +65,11 @@ public: bool allowTopLevelDollarPrefixedFields = false); /** - * Initializes the node with the document to replace with. Any zero-valued timestamps (except - * for the _id) are updated to the current time. + * Initializes the node with the document to replace with. If 'bypassEmptyTsReplacement' is + * false, any zero-valued timestamps (except for the _id) will be replaced with the current + * time. */ - explicit ObjectReplaceExecutor(BSONObj replacement); + explicit ObjectReplaceExecutor(BSONObj replacement, bool bypassEmptyTsReplacement = false); /** * Replaces the document that 'applyParams.element' belongs to with 'val'. If 'val' does not @@ -95,6 +96,8 @@ private: // True if '_replacementDoc' contains an _id. bool _containsId; + + bool _bypassEmptyTsReplacement = false; }; } // namespace mongo |
