diff options
author | Spencer T Brody <spencer@mongodb.com> | 2014-09-18 11:59:01 -0400 |
---|---|---|
committer | Spencer T Brody <spencer@mongodb.com> | 2014-09-18 16:11:13 -0400 |
commit | aff4ae5f1da121fb94f01cb4e278a4596ec7856a (patch) | |
tree | c4aef4b042b05fe37e97c57823b5641a85b8d660 | |
parent | 0cf60aa0af55a673786d4950c4b5524c1d671e6e (diff) | |
download | mongo-aff4ae5f1da121fb94f01cb4e278a4596ec7856a.tar.gz |
SERVER-14887 Remove user document validation from the storage layer.
User documents are validated in the user management commands, validating them in the storage layer
makes the system less flexible and causes problems with mixed-version replica sets.
-rw-r--r-- | src/mongo/db/catalog/collection.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/mongo/db/catalog/collection.cpp b/src/mongo/db/catalog/collection.cpp index e29a1a3443f..27977ed6793 100644 --- a/src/mongo/db/catalog/collection.cpp +++ b/src/mongo/db/catalog/collection.cpp @@ -302,14 +302,6 @@ namespace mongo { 13596 ); } - if ( ns().coll() == "system.users" ) { - // XXX - andy and spencer think this should go away now - V2UserDocumentParser parser; - Status s = parser.checkValidUserDocument(objNew); - if ( !s.isOK() ) - return StatusWith<DiskLoc>( s ); - } - /* duplicate key check. we descend the btree twice - once for this check, and once for the actual inserts, further below. that is suboptimal, but it's pretty complicated to do it the other way without rollbacks... */ |