Commit a01e8b42 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Implement more convenient primitives for the on-disk signatures.

Wrap the ident struct in a signature as well for consistency.



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@3935 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent a013d663
......@@ -332,6 +332,8 @@ BAN_Insert(struct ban *b)
be->refcount++;
} else
be = NULL;
SMP_NewBan(b->t0, b->test);
Lck_Unlock(&ban_mtx);
if (be == NULL)
......@@ -349,7 +351,6 @@ BAN_Insert(struct ban *b)
bi->flags |= BAN_F_GONE;
pcount++;
}
SMP_NewBan(b->t0, b->test);
Lck_Lock(&ban_mtx);
be->refcount--;
VSL_stats->n_purge_dups += pcount;
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment