summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/oplog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/repl/oplog.cpp')
-rw-r--r--src/mongo/db/repl/oplog.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mongo/db/repl/oplog.cpp b/src/mongo/db/repl/oplog.cpp
index 7ae35aaa875..be4cc5863b4 100644
--- a/src/mongo/db/repl/oplog.cpp
+++ b/src/mongo/db/repl/oplog.cpp
@@ -1111,6 +1111,12 @@ const StringMap<ApplyOpMetadata> kOpsMap = {
global_index::createContainer(opCtx, globalIndexUUID);
return Status::OK();
}}},
+ {"dropGlobalIndex",
+ {[](OperationContext* opCtx, const OplogEntry& entry, OplogApplication::Mode mode) -> Status {
+ const auto& globalIndexUUID = entry.getUuid().get();
+ global_index::dropContainer(opCtx, globalIndexUUID);
+ return Status::OK();
+ }}},
};
// Writes a change stream pre-image 'preImage' associated with oplog entry 'oplogEntry' and a write