summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/oplog_entry.h
diff options
context:
space:
mode:
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;