From 4cb0742947dabee476c9979cae39c728a21568d5 Mon Sep 17 00:00:00 2001 From: Dianna Hohensee Date: Mon, 27 Aug 2018 13:06:38 -0400 Subject: SERVER-36015 Remove references to system.namespaces and system.indexes --- src/mongo/db/commands/write_commands/write_commands_common.cpp | 7 ------- 1 file changed, 7 deletions(-) (limited to 'src/mongo/db/commands/write_commands/write_commands_common.cpp') diff --git a/src/mongo/db/commands/write_commands/write_commands_common.cpp b/src/mongo/db/commands/write_commands/write_commands_common.cpp index 49f72b919fd..3ba6338cd0d 100644 --- a/src/mongo/db/commands/write_commands/write_commands_common.cpp +++ b/src/mongo/db/commands/write_commands/write_commands_common.cpp @@ -65,13 +65,6 @@ NamespaceString _getIndexedNss(const std::vector& documents) { void fillPrivileges(const write_ops::Insert& op, std::vector* privileges, ActionSet* actions) { - if (op.getNamespace().isSystemDotIndexes()) { - // Special-case indexes until we have a command - privileges->push_back( - Privilege(ResourcePattern::forExactNamespace(_getIndexedNss(op.getDocuments())), - ActionType::createIndex)); - return; - } actions->addAction(ActionType::insert); } -- cgit v1.2.1