Browse code

one more abort for watching for bug #364 introduced

Jiri Kuthan authored on 24/09/2002 17:29:13
Showing 1 changed files
... ...
@@ -364,11 +364,17 @@ void remove_from_hash_table_unsafe( struct cell * p_cell)
364 364
 	/* update stats */
365 365
 #	ifdef EXTRA_DEBUG
366 366
 	if (p_entry->cur_entries==0) {
367
-		LOG(L_BUG, "BUG: bad things happened: cur_entries=0\n");
367
+		LOG(L_CRIT, "BUG: bad things happened: cur_entries=0\n");
368 368
 		abort();
369 369
 	}
370 370
 #	endif
371 371
 	p_entry->cur_entries--;
372
+#	ifdef EXTRA_DEBUG
373
+	if (cur_stats->transactions==0) {
374
+		LOG(L_CRIT, "BUG: bad things happened: cur->transactions=0\n");
375
+		abort();
376
+	}
377
+#	endif
372 378
 	cur_stats->transactions--;
373 379
 	if (p_cell->local) cur_stats->client_transactions--;
374 380
 	cur_stats->waiting--;