From 9620db309dcebfc7ee45b1cfca36d3380aabb20f Mon Sep 17 00:00:00 2001 From: Dwight Date: Fri, 29 Feb 2008 08:08:40 -0500 Subject: [PATCH] don't terminate on assert --- db/clientcursor.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/db/clientcursor.cpp b/db/clientcursor.cpp index a92c5547efa..bc9298f33bd 100644 --- a/db/clientcursor.cpp +++ b/db/clientcursor.cpp @@ -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;