From: Derrick Brashear Date: Fri, 1 Feb 2008 21:33:40 +0000 (+0000) Subject: DEVEL15-h-enumerate-less-heavyhanded-check-20080201 X-Git-Tag: openafs-devel-1_5_31~46 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=28cf013460577491cc783f6a663200185a408161;p=packages%2Fo%2Fopenafs.git DEVEL15-h-enumerate-less-heavyhanded-check-20080201 LICENSE IPL10 if hostCount is too small this is fine or at least not fatal (cherry picked from commit 4fe2978f69f6314284d5689ea1d9169360155450) --- diff --git a/src/viced/host.c b/src/viced/host.c index b28f55e31..54f498250 100644 --- a/src/viced/host.c +++ b/src/viced/host.c @@ -1086,7 +1086,10 @@ h_Enumerate(int (*proc) (), char *param) if (!(held[count] = h_Held_r(host))) h_Hold_r(host); } - assert(count == hostCount); + if (count != hostCount) { + ViceLog(0, ("h_Enumerate found %d of %d hosts\n", count, hostCount)); + } + assert(count <= hostCount); H_UNLOCK; for (i = 0; i < count; i++) { held[i] = (*proc) (list[i], held[i], param);