diff options
author | Eliot Horowitz <eliot@10gen.com> | 2013-12-29 06:58:49 -0500 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2013-12-30 00:44:24 -0500 |
commit | 9ed59dd2cd3ba625591e2c2e0330065b43519f0a (patch) | |
tree | 9b3b8746b45169ac89713da79f0ce373f2ffd7d6 /src/mongo/db/pdfile.cpp | |
parent | e10159da29f812b190c6c86fa20b2c8f21ef754f (diff) | |
download | mongo-9ed59dd2cd3ba625591e2c2e0330065b43519f0a.tar.gz |
SERVER-12213: move collection check closer to user
Diffstat (limited to 'src/mongo/db/pdfile.cpp')
-rw-r--r-- | src/mongo/db/pdfile.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/mongo/db/pdfile.cpp b/src/mongo/db/pdfile.cpp index 1a195c3f68e..6612e8ab1dd 100644 --- a/src/mongo/db/pdfile.cpp +++ b/src/mongo/db/pdfile.cpp @@ -69,7 +69,6 @@ _ disallow system* manipulations from the database. #include "mongo/db/memconcept.h" #include "mongo/db/namespace_string.h" #include "mongo/db/ops/delete.h" -#include "mongo/db/ops/insert.h" #include "mongo/db/repl/is_master.h" #include "mongo/db/sort_phase_one.h" #include "mongo/db/repl/oplog.h" @@ -309,8 +308,6 @@ namespace mongo { str::stream() << "invalid ns: " << ns, NamespaceString::validCollectionComponent(ns)); - uassertStatusOK( userAllowedWriteNS( ns ) ); - bool ok = _userCreateNS(ns, options, err, deferIdIndex); if ( logForReplication && ok ) { if ( options.getField( "create" ).eoo() ) { |