h-enumerate-less-heavyhanded-check-20080201

LICENSE IPL10

if hostCount is too small this is fine or at least not fatal
This commit is contained in:
Derrick Brashear 2008-02-01 21:31:32 +00:00
parent 4ad35bd5aa
commit 4fe2978f69

View File

@ -1087,7 +1087,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);