]> err.no Git - varnish/commit
Optimize shmlog writing:
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 22 Aug 2006 10:46:16 +0000 (10:46 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 22 Aug 2006 10:46:16 +0000 (10:46 +0000)
commit1e6e005ea6d68d86b2a819be562bb262786e8d39
tree444fc9c279a8b3b313ab47419c1df2b29a15f231
parent941da21f9214de9d37c8b3956917038f0007059b
Optimize shmlog writing:

If we know the record length, only hold the mutex while we reserve
the space.  Until we change the first byte, nothing bad can happen.

XXX: a memory barrier is strictly speaking necessary before we assign
the first byte.

If there are no '%' in the format string, treat as fixed length for
speed.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@895 d4fa192b-c00b-0410-8231-f00ffab90ce4
varnish-cache/bin/varnishd/shmlog.c