Skip to content

Commit

Permalink
remove failing dassert from addDefaultIndexesToCatalog #527
Browse files Browse the repository at this point in the history
  • Loading branch information
leifwalsh committed Sep 24, 2013
1 parent a0117ac commit 0b85a71
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/mongo/db/namespace_details.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1542,7 +1542,9 @@ namespace mongo {

void NamespaceDetails::addDefaultIndexesToCatalog() {
// Either a single primary key or a hidden primary key + _id index.
dassert(_nIndexes == 1 || (_nIndexes == 2 && findIdIndex() == 1));
// TODO: this is now incorrect in the case of system.users collections, need to fix it and
//uncomment it:
//dassert(_nIndexes == 1 || (_nIndexes == 2 && findIdIndex() == 1));
for (int i = 0; i < nIndexes(); i++) {
addIndexToCatalog(_indexes[i]->info());
}
Expand Down

0 comments on commit 0b85a71

Please sign in to comment.