summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands/write_commands/write_commands_common.cpp
diff options
context:
space:
mode:
authorDianna Hohensee <dianna.hohensee@10gen.com>2018-08-27 13:06:38 -0400
committerDianna Hohensee <dianna.hohensee@10gen.com>2018-08-29 16:47:09 -0400
commit4cb0742947dabee476c9979cae39c728a21568d5 (patch)
tree8ec6baacaab48a11b20eae4781f32be1bdad6ec2 /src/mongo/db/commands/write_commands/write_commands_common.cpp
parentaa36a9e8ad8c98e828f1b53966672b368d973380 (diff)
downloadmongo-4cb0742947dabee476c9979cae39c728a21568d5.tar.gz
SERVER-36015 Remove references to system.namespaces and system.indexes
Diffstat (limited to 'src/mongo/db/commands/write_commands/write_commands_common.cpp')
-rw-r--r--src/mongo/db/commands/write_commands/write_commands_common.cpp7
1 files changed, 0 insertions, 7 deletions
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<BSONObj>& documents) {
void fillPrivileges(const write_ops::Insert& op,
std::vector<Privilege>* 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);
}