summaryrefslogtreecommitdiff
path: root/src/mongo/db/catalog/index_catalog_impl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/catalog/index_catalog_impl.cpp')
-rw-r--r--src/mongo/db/catalog/index_catalog_impl.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/mongo/db/catalog/index_catalog_impl.cpp b/src/mongo/db/catalog/index_catalog_impl.cpp
index 261f0f8fb71..fd63fb5d40e 100644
--- a/src/mongo/db/catalog/index_catalog_impl.cpp
+++ b/src/mongo/db/catalog/index_catalog_impl.cpp
@@ -796,10 +796,6 @@ Status IndexCatalogImpl::_isSpecOk(OperationContext* opCtx,
}
}
- uassert(ErrorCodes::InvalidOptions,
- "Unique indexes are not supported on clustered collections",
- !collection->isClustered() || !spec[IndexDescriptor::kUniqueFieldName].trueValue());
-
if (IndexDescriptor::isIdIndexPattern(key)) {
if (collection->isClustered()) {
return Status(ErrorCodes::CannotCreateIndex,