summaryrefslogtreecommitdiff
path: root/src/mongo/db/system_index.cpp
diff options
context:
space:
mode:
authorGregory Wlodarek <gregory.wlodarek@mongodb.com>2018-09-07 13:30:43 -0400
committerGregory Wlodarek <gregory.wlodarek@mongodb.com>2018-09-07 13:30:43 -0400
commit4c4c76ec1be5edb1d7560aecfe4ac7f5ada7ba00 (patch)
treee73893dbd30897bb74c10fb2295c0d279b6e10cc /src/mongo/db/system_index.cpp
parentcbfd82be9efa5e0f6dd45d974d7fc729b989cb9c (diff)
downloadmongo-4c4c76ec1be5edb1d7560aecfe4ac7f5ada7ba00.tar.gz
SERVER-36472 Convert OptionalCollectionUUID in OpObserver::onCreateIndex to CollectionUUID
Diffstat (limited to 'src/mongo/db/system_index.cpp')
-rw-r--r--src/mongo/db/system_index.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/system_index.cpp b/src/mongo/db/system_index.cpp
index bc71d2a28c3..ca5aa8329cf 100644
--- a/src/mongo/db/system_index.cpp
+++ b/src/mongo/db/system_index.cpp
@@ -136,7 +136,7 @@ void generateSystemIndexForExistingCollection(OperationContext* opCtx,
indexer.commit([opCtx, &ns, collection](const BSONObj& spec) {
opCtx->getServiceContext()->getOpObserver()->onCreateIndex(
- opCtx, ns, collection->uuid(), spec, false /* fromMigrate */);
+ opCtx, ns, *(collection->uuid()), spec, false /* fromMigrate */);
});
wunit.commit();
@@ -235,7 +235,7 @@ void createSystemIndexes(OperationContext* opCtx, Collection* collection) {
}
if (!indexSpec.isEmpty()) {
opCtx->getServiceContext()->getOpObserver()->onCreateIndex(
- opCtx, ns, collection->uuid(), indexSpec, false /* fromMigrate */);
+ opCtx, ns, *(collection->uuid()), indexSpec, false /* fromMigrate */);
// Note that the opObserver is called prior to creating the index. This ensures the index
// write gets the same storage timestamp as the oplog entry.
fassert(40456,