]> err.no Git - varnish/commitdiff
Make the logic visible for FlexeLint
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 25 Sep 2007 07:57:06 +0000 (07:57 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 25 Sep 2007 07:57:06 +0000 (07:57 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2029 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/shmlog.c

index 23a011729a92864d82ec862a24324cc86de2b3b5..089cd852cdf027b3535bc40316d6b4e3cb5fb5e5 100644 (file)
@@ -178,9 +178,9 @@ WSL_Flush(struct worker *w)
        unsigned char *p;
        unsigned l;
 
-       if (w->wlp == w->wlog)
-               return;
        l = pdiff(w->wlog, w->wlp);
+       if (l == 0)
+               return;
        LOCKSHM(&vsl_mtx);
        VSL_stats->shm_writes++;
        VSL_stats->shm_records += w->wlr;