19 lines
586 B
Diff
19 lines
586 B
Diff
|
Index: bin/varnishd/cache_center.c
|
||
|
===================================================================
|
||
|
--- bin/varnishd/cache_center.c (revision 1912)
|
||
|
+++ bin/varnishd/cache_center.c (revision 1913)
|
||
|
@@ -524,7 +524,12 @@
|
||
|
*/
|
||
|
WSL(sp->wrk, SLT_Debug, sp->fd,
|
||
|
"on waiting list on obj %u", sp->obj->xid);
|
||
|
- assert(!isnan(sp->wrk->used));
|
||
|
+ /*
|
||
|
+ * There is a non-zero risk that we come here more than once
|
||
|
+ * before we get through, in that case cnt_recv must be set
|
||
|
+ */
|
||
|
+ if (isnan(sp->wrk->used))
|
||
|
+ sp->wrk->used = TIM_real();
|
||
|
SES_Charge(sp);
|
||
|
return (1);
|
||
|
}
|