diff options
author | Xiangyu Yao <xiangyu.yao@mongodb.com> | 2019-07-11 18:37:42 -0400 |
---|---|---|
committer | Xiangyu Yao <xiangyu.yao@mongodb.com> | 2019-07-15 13:30:02 -0400 |
commit | 70a3df4dd5d102b2370a871c9182be281100a487 (patch) | |
tree | 4101519c5505800900caf30b1730c5fc6cdaeb5a /src/mongo/db/commands/drop_indexes.cpp | |
parent | bb4ba528dd4254c33ac77026f94bc287b590ff3c (diff) | |
download | mongo-70a3df4dd5d102b2370a871c9182be281100a487.tar.gz |
SERVER-42194 Make Collection always hold a UUID (rather than optional UUID)
Diffstat (limited to 'src/mongo/db/commands/drop_indexes.cpp')
-rw-r--r-- | src/mongo/db/commands/drop_indexes.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mongo/db/commands/drop_indexes.cpp b/src/mongo/db/commands/drop_indexes.cpp index 1b4b9491d7f..25702078378 100644 --- a/src/mongo/db/commands/drop_indexes.cpp +++ b/src/mongo/db/commands/drop_indexes.cpp @@ -145,9 +145,8 @@ public: } BackgroundOperation::assertNoBgOpInProgForNs(toReIndexNss.ns()); - invariant(collection->uuid()); IndexBuildsCoordinator::get(opCtx)->assertNoIndexBuildInProgForCollection( - collection->uuid().get()); + collection->uuid()); // This is necessary to set up CurOp and update the Top stats. OldClientContext ctx(opCtx, toReIndexNss.ns()); |