summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/oplog_entry.h
diff options
context:
space:
mode:
authorYu Jin Kang Park <yujin.kang@mongodb.com>2022-10-06 07:57:23 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-10-06 08:54:07 +0000
commit32b8f72910d871e978fdacbebaf6e486ffcfc10c (patch)
tree875276bdef48de6f38587d3acffd898df34e827c /src/mongo/db/repl/oplog_entry.h
parent58b0596d972874495a73f56b9f99299c6d03db52 (diff)
downloadmongo-32b8f72910d871e978fdacbebaf6e486ffcfc10c.tar.gz
SERVER-69554: Parallelise global index CRUD replication
Diffstat (limited to 'src/mongo/db/repl/oplog_entry.h')
-rw-r--r--src/mongo/db/repl/oplog_entry.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mongo/db/repl/oplog_entry.h b/src/mongo/db/repl/oplog_entry.h
index 70c5fa35430..b6410503ce2 100644
--- a/src/mongo/db/repl/oplog_entry.h
+++ b/src/mongo/db/repl/oplog_entry.h
@@ -549,6 +549,12 @@ public:
bool isCrudOpType() const;
/**
+ * Returns true if the oplog entry is for a global index CRUD operation.
+ */
+ static bool isGlobalIndexCrudOpType(OpTypeEnum opType);
+ bool isGlobalIndexCrudOpType() const;
+
+ /**
* Returns true if the oplog entry is for an Update or Delete operation.
*/
bool isUpdateOrDelete() const;
@@ -756,6 +762,7 @@ public:
mongo::Date_t getWallClockTimeForPreImage() const;
bool isCrudOpType() const;
+ bool isGlobalIndexCrudOpType() const;
bool isUpdateOrDelete() const;
bool isIndexCommandType() const;
bool shouldPrepare() const;