diff options
author | Gregory Wlodarek <gregory.wlodarek@mongodb.com> | 2018-09-07 13:30:43 -0400 |
---|---|---|
committer | Gregory Wlodarek <gregory.wlodarek@mongodb.com> | 2018-09-07 13:30:43 -0400 |
commit | 4c4c76ec1be5edb1d7560aecfe4ac7f5ada7ba00 (patch) | |
tree | e73893dbd30897bb74c10fb2295c0d279b6e10cc /src/mongo/db/system_index.cpp | |
parent | cbfd82be9efa5e0f6dd45d974d7fc729b989cb9c (diff) | |
download | mongo-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.cpp | 4 |
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, |