From 846c7aa84ac08dbccc7d727e9068406b7b2de033 Mon Sep 17 00:00:00 2001 From: Maria van Keulen Date: Tue, 14 Jan 2020 21:32:54 +0000 Subject: SERVER-44852 Handle transactions with commands during oplog application --- src/mongo/db/repl/oplog_entry.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/mongo/db/repl/oplog_entry.h') 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 @@ -311,6 +311,12 @@ public: !isPartialTransaction() && !getObject().getBoolField("prepare"); } + /** + * 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. */ -- cgit v1.2.1