- Make ipcache/fqdncache entry lock counter a short just to be
further reduce the chance that it overflows.
/*
- * $Id: fqdncache.cc,v 1.139 2000/10/04 01:02:13 wessels Exp $
+ * $Id: fqdncache.cc,v 1.140 2000/10/04 19:34:13 wessels Exp $
*
* DEBUG: section 35 FQDN Cache
* AUTHOR: Harvest Derived
char *error_message;
struct timeval request_time;
dlink_node lru;
- unsigned char locks;
+ unsigned short locks;
struct {
unsigned int negcached:1;
} flags;
static void
fqdncacheUnlockEntry(fqdncache_entry * f)
{
- if (f->locks == 0) {
- debug_trap("fqdncacheUnlockEntry: Entry has no locks");
- return;
- }
+ assert(f->locks > 0);
f->locks--;
if (fqdncacheExpiredEntry(f))
fqdncacheRelease(f);
/*
- * $Id: ipcache.cc,v 1.223 2000/10/04 01:02:13 wessels Exp $
+ * $Id: ipcache.cc,v 1.224 2000/10/04 19:34:14 wessels Exp $
*
* DEBUG: section 14 IP Cache
* AUTHOR: Harvest Derived
char *error_message;
struct timeval request_time;
dlink_node lru;
- unsigned char locks;
+ unsigned short locks;
struct {
unsigned int negcached:1;
} flags;