r330 - trunk/varnish-cache/bin/varnishd
phk at projects.linpro.no
phk at projects.linpro.no
Wed Jul 5 15:44:20 CEST 2006
Author: phk
Date: 2006-07-05 15:44:20 +0200 (Wed, 05 Jul 2006)
New Revision: 330
Modified:
trunk/varnish-cache/bin/varnishd/storage_file.c
Log:
Assert non-null first
Modified: trunk/varnish-cache/bin/varnishd/storage_file.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/storage_file.c 2006-07-05 13:19:14 UTC (rev 329)
+++ trunk/varnish-cache/bin/varnishd/storage_file.c 2006-07-05 13:44:20 UTC (rev 330)
@@ -483,9 +483,9 @@
size &= ~(sc->pagesize - 1);
AZ(pthread_mutex_lock(&sc->mtx));
smf = alloc_smf(sc, size);
- assert(smf->size == size);
AZ(pthread_mutex_unlock(&sc->mtx));
assert(smf != NULL);
+ assert(smf->size == size);
smf->s.space = size;
smf->s.priv = smf;
smf->s.ptr = smf->ptr;
More information about the varnish-commit
mailing list