summaryrefslogtreecommitdiff
path: root/src/mongo/db/catalog
diff options
context:
space:
mode:
authorBenety Goh <benety@mongodb.com>2021-11-19 06:25:11 -0500
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-11-19 11:54:03 +0000
commit3327daa086ffb61a14827f7989603aced74ab906 (patch)
tree3d8d58ea37286828fd153d46640cb59b89c0d547 /src/mongo/db/catalog
parent60280010d13224a26aa3445944065975cc0b81a7 (diff)
downloadmongo-3327daa086ffb61a14827f7989603aced74ab906.tar.gz
SERVER-61611 OpObserver::aboutToDelete() accepts UUID
Diffstat (limited to 'src/mongo/db/catalog')
-rw-r--r--src/mongo/db/catalog/collection_impl.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/catalog/collection_impl.cpp b/src/mongo/db/catalog/collection_impl.cpp
index 4bcc1657708..7ba1084c750 100644
--- a/src/mongo/db/catalog/collection_impl.cpp
+++ b/src/mongo/db/catalog/collection_impl.cpp
@@ -1053,7 +1053,7 @@ void CollectionImpl::_cappedDeleteAsNeeded(OperationContext* opCtx,
BSONObj doc = record->data.toBson();
if (ns().isReplicated()) {
OpObserver* opObserver = opCtx->getServiceContext()->getOpObserver();
- opObserver->aboutToDelete(opCtx, ns(), doc);
+ opObserver->aboutToDelete(opCtx, ns(), uuid(), doc);
OplogDeleteEntryArgs args;
// Explicitly setting values despite them being the defaults.
@@ -1184,7 +1184,7 @@ void CollectionImpl::deleteDocument(OperationContext* opCtx,
retryableFindAndModifyLocation,
oplogSlots};
- getGlobalServiceContext()->getOpObserver()->aboutToDelete(opCtx, ns(), doc.value());
+ getGlobalServiceContext()->getOpObserver()->aboutToDelete(opCtx, ns(), uuid(), doc.value());
boost::optional<BSONObj> deletedDoc;
const bool isRecordingPreImageForRetryableWrite =