summaryrefslogtreecommitdiff
path: root/src/mongo/db/catalog/index_repair.cpp
diff options
context:
space:
mode:
authorJordi Serra Torrens <jordi.serra-torrens@mongodb.com>2022-09-28 10:11:50 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-11-04 18:50:12 +0000
commit53973727e253d8b797bc0b2a734326d4e3fdad6d (patch)
treed4cf0a1effcc98ab265b44317194658c975775b7 /src/mongo/db/catalog/index_repair.cpp
parent05cf56be4fdfa33c88d47dfb48f95a60c9cc7e09 (diff)
downloadmongo-53973727e253d8b797bc0b2a734326d4e3fdad6d.tar.gz
SERVER-70043 Thread-through CollectionPtr into the onDelete OpObserver
Co-authored-by: Daniel Gómez Ferro <daniel.gomezferro@mongodb.com>
Diffstat (limited to 'src/mongo/db/catalog/index_repair.cpp')
-rw-r--r--src/mongo/db/catalog/index_repair.cpp17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/mongo/db/catalog/index_repair.cpp b/src/mongo/db/catalog/index_repair.cpp
index 8b36157188b..3f49f3a4563 100644
--- a/src/mongo/db/catalog/index_repair.cpp
+++ b/src/mongo/db/catalog/index_repair.cpp
@@ -98,14 +98,15 @@ StatusWith<int> moveRecordToLostAndFound(OperationContext* opCtx,
// CheckRecordId set to 'On' because we need _unindexKeys to confirm the record id of
// this document matches the record id of the element it tries to unindex. This avoids
// wrongly unindexing a document with the same _id.
- originalCollection->deleteDocument(opCtx,
- kUninitializedStmtId,
- dupRecord,
- nullptr /* opDebug */,
- false /* fromMigrate */,
- false /* noWarn */,
- Collection::StoreDeletedDoc::Off,
- CheckRecordId::On);
+ collection_internal::deleteDocument(opCtx,
+ originalCollection,
+ kUninitializedStmtId,
+ dupRecord,
+ nullptr /* opDebug */,
+ false /* fromMigrate */,
+ false /* noWarn */,
+ collection_internal::StoreDeletedDoc::Off,
+ CheckRecordId::On);
wuow.commit();
return docSize;