summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands/drop_indexes.cpp
diff options
context:
space:
mode:
authorlukebhan <luke.bhan@vanderbilt.edu>2021-06-16 19:31:09 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-06-23 16:49:50 +0000
commitc4849034202d3e75960b99d9383cc43321ad866e (patch)
treeb4a574b7af0748651fc6f45c11b3fe8742a536c0 /src/mongo/db/commands/drop_indexes.cpp
parent32d4d90cb12b46a57101b5de4e9ba08b5ab50c9e (diff)
downloadmongo-c4849034202d3e75960b99d9383cc43321ad866e.tar.gz
SERVER-57119 Changed view_catalog interface to only use NamespaceString
removed places where ns.ns() is called changed stringdata to namespace string for lookup function update view catalog update view catalog test fixed test fixed create coll
Diffstat (limited to 'src/mongo/db/commands/drop_indexes.cpp')
-rw-r--r--src/mongo/db/commands/drop_indexes.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/commands/drop_indexes.cpp b/src/mongo/db/commands/drop_indexes.cpp
index c9ce56aae76..606b630fd4b 100644
--- a/src/mongo/db/commands/drop_indexes.cpp
+++ b/src/mongo/db/commands/drop_indexes.cpp
@@ -189,7 +189,7 @@ public:
AutoGetCollection autoColl(opCtx, toReIndexNss, MODE_X);
if (!autoColl) {
auto db = autoColl.getDb();
- if (db && ViewCatalog::get(db)->lookup(opCtx, toReIndexNss.ns()))
+ if (db && ViewCatalog::get(db)->lookup(opCtx, toReIndexNss))
uasserted(ErrorCodes::CommandNotSupportedOnView, "can't re-index a view");
else
uasserted(ErrorCodes::NamespaceNotFound, "collection does not exist");