SERVER-3064 out for now - too many issues with rollback

This commit is contained in:
Eliot Horowitz
2011-08-05 20:41:03 -04:00
parent bd1ed81417
commit 7cc114bbc0
2 changed files with 12 additions and 5 deletions

View File

@@ -219,9 +219,15 @@ doneCheckOrder:
// we disallow as its a common user error
// .system. and local collections are exempt
if ( _d && _d->capped && _frs.range( "_id" ).nontrivial() ) {
uassert( 14820, "doing _id query on a capped collection without an index is not allowed" ,
str::contains( _frs.ns() , ".system." ) ||
str::startsWith( _frs.ns() , "local." ) );
if ( cc().isSyncThread() ||
str::contains( _frs.ns() , ".system." ) ||
str::startsWith( _frs.ns() , "local." ) ) {
// ok
}
else {
warning() << "_id query on capped collection without an _id index, performance will be poor collection: " << _frs.ns() << endl;
//uassert( 14820, str::stream() << "doing _id query on a capped collection without an index is not allowed: " << _frs.ns() ,
}
}
}
return findTableScan( _frs.ns(), _order, startLoc );