git://git.openafs.org
/
openafs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
4ad35bd
)
h-enumerate-less-heavyhanded-check-20080201
author
Derrick Brashear
<shadow@dementia.org>
Fri, 1 Feb 2008 21:31:32 +0000 (21:31 +0000)
committer
Derrick Brashear
<shadow@dementia.org>
Fri, 1 Feb 2008 21:31:32 +0000 (21:31 +0000)
LICENSE IPL10
if hostCount is too small this is fine or at least not fatal
src/viced/host.c
patch
|
blob
|
history
diff --git
a/src/viced/host.c
b/src/viced/host.c
index
f26439c
..
bf5aeb6
100644
(file)
--- a/
src/viced/host.c
+++ b/
src/viced/host.c
@@
-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);