diff options
author | Maria van Keulen <maria.vankeulen@mongodb.com> | 2020-01-14 21:32:54 +0000 |
---|---|---|
committer | evergreen <evergreen@mongodb.com> | 2020-01-14 21:32:54 +0000 |
commit | 846c7aa84ac08dbccc7d727e9068406b7b2de033 (patch) | |
tree | b1b1b2c3e8ca99eb9b594e9ab1724d116eead4f3 /src/mongo/db/repl/oplog_entry.h | |
parent | c04fde3eca954d9bf9243d544484a90997ba9373 (diff) | |
download | mongo-846c7aa84ac08dbccc7d727e9068406b7b2de033.tar.gz |
SERVER-44852 Handle transactions with commands during oplog application
Diffstat (limited to 'src/mongo/db/repl/oplog_entry.h')
-rw-r--r-- | src/mongo/db/repl/oplog_entry.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mongo/db/repl/oplog_entry.h b/src/mongo/db/repl/oplog_entry.h index b1678b37267..4181a30c1ad 100644 --- a/src/mongo/db/repl/oplog_entry.h +++ b/src/mongo/db/repl/oplog_entry.h @@ -312,6 +312,12 @@ public: } /** + * Returns whether the oplog entry represents an applyOps with a commnd inside. This will occur + * if a multi-document transaction performs a command. + */ + bool isTransactionWithCommand() const; + + /** * Returns if the oplog entry is for a CRUD operation. */ static bool isCrudOpType(OpTypeEnum opType); |