Revert "build index in system.user on insert SERVER-3572"

This reverts commit 3733a988c5.

Currently only builds index if system.users already exists so doesn't work for
first user. Reverting since this is breaking buildbot.
This commit is contained in:
Mathias Stearn
2011-10-24 18:20:30 -04:00
parent 5e0672d6de
commit 541aa57d8f
2 changed files with 3 additions and 5 deletions

View File

@@ -79,7 +79,9 @@ namespace mongo {
pwd = internalSecurity.pwd;
}
else {
// static BSONObj userPattern = fromjson("{\"user\":1}");
string systemUsers = dbname + ".system.users";
// OCCASIONALLY Helpers::ensureIndex(systemUsers.c_str(), userPattern, false, "user_1");
{
BSONObjBuilder b;
b << "user" << user;