diff options
Diffstat (limited to 'src/mongo/db/repl/oplog_entry.h')
-rw-r--r-- | src/mongo/db/repl/oplog_entry.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mongo/db/repl/oplog_entry.h b/src/mongo/db/repl/oplog_entry.h index 87a946fe634..2eb195c079a 100644 --- a/src/mongo/db/repl/oplog_entry.h +++ b/src/mongo/db/repl/oplog_entry.h @@ -189,6 +189,11 @@ public: return variant_util::toVector<StmtId>(DurableReplOperation::getStatementIds()); } + void setFromMigrateIfTrue(bool value) & { + if (value) + setFromMigrate(value); + } + private: BSONObj _preImageDocumentKey; @@ -339,6 +344,10 @@ public: */ OpTime getOpTime() const; + void setFromMigrate(bool value) & { + getDurableReplOperation().setFromMigrate(value); + } + /** * Same as setFromMigrate but only set when it is true. */ |