don't terminate on assert

This commit is contained in:
Dwight
2008-02-29 08:08:40 -05:00
parent 225d58f88e
commit 9620db309d

View File

@@ -143,11 +143,10 @@ ClientCursor::~ClientCursor() {
// note this doesn't set lastLoc -- caller should.
void ClientCursor::addToByLocation(DiskLoc cl) {
//if( 1 )
//return;
//TEMP!
assert( nextAtThisLocation == 0 );
if( nextAtThisLocation ) {
wassert( nextAtThisLocation == 0 );
return;
}
DiskToCC::iterator j = byLocation.find(cl);
nextAtThisLocation = j == byLocation.end() ? 0 : j->second;