0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00

make warning about missing index entries for large keys nicer SERVER-2693

This commit is contained in:
Eliot Horowitz 2011-03-07 08:15:18 -05:00
parent 82de6a0f3e
commit 2b145a4dec

View File

@ -1193,7 +1193,9 @@ namespace mongo {
op->setMessage( "index: (3/3) btree-middle" );
log(t.seconds() > 10 ? 0 : 1 ) << "\t done building bottom layer, going to commit" << endl;
btBuilder.commit();
wassert( btBuilder.getn() == nkeys || dropDups );
if ( btBuilder.getn() != nkeys && ! dropDups ) {
warning() << "not all entries were added to the index, probably some keys were too large" << endl;
}
}
log(1) << "\t fastBuildIndex dupsToDrop:" << dupsToDrop.size() << endl;