summaryrefslogtreecommitdiff
path: root/src/mongo/db/catalog/drop_indexes.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/catalog/drop_indexes.cpp')
-rw-r--r--src/mongo/db/catalog/drop_indexes.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/catalog/drop_indexes.cpp b/src/mongo/db/catalog/drop_indexes.cpp
index 4af7afc812e..b299eec9ec7 100644
--- a/src/mongo/db/catalog/drop_indexes.cpp
+++ b/src/mongo/db/catalog/drop_indexes.cpp
@@ -65,7 +65,7 @@ Status checkView(OperationContext* opCtx,
Database* db,
const CollectionPtr& collection) {
if (!collection) {
- if (db && ViewCatalog::get(db)->lookup(opCtx, nss.ns())) {
+ if (db && ViewCatalog::get(db)->lookup(opCtx, nss)) {
return Status(ErrorCodes::CommandNotSupportedOnView,
str::stream() << "Cannot drop indexes on view " << nss);
}