r5373 - trunk/varnish-cache/bin/varnishd
phk at varnish-cache.org
phk at varnish-cache.org
Fri Oct 1 09:50:45 CEST 2010
Author: phk
Date: 2010-10-01 09:50:44 +0200 (Fri, 01 Oct 2010)
New Revision: 5373
Modified:
trunk/varnish-cache/bin/varnishd/cache_center.c
trunk/varnish-cache/bin/varnishd/cache_vrt.c
Log:
Nitpicking style etc.
Modified: trunk/varnish-cache/bin/varnishd/cache_center.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache_center.c 2010-10-01 07:21:18 UTC (rev 5372)
+++ trunk/varnish-cache/bin/varnishd/cache_center.c 2010-10-01 07:50:44 UTC (rev 5373)
@@ -1049,6 +1049,8 @@
sp->disable_esi = 0;
sp->pass = 0;
+ sp->hash_always_miss = 0;
+ sp->hash_ignore_busy = 0;
sp->client_identity = NULL;
VCL_recv_method(sp);
Modified: trunk/varnish-cache/bin/varnishd/cache_vrt.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache_vrt.c 2010-10-01 07:21:18 UTC (rev 5372)
+++ trunk/varnish-cache/bin/varnishd/cache_vrt.c 2010-10-01 07:50:44 UTC (rev 5373)
@@ -709,10 +709,12 @@
VRT_l_req_esi(struct sess *sp, unsigned process_esi)
{
CHECK_OBJ_NOTNULL(sp, SESS_MAGIC);
- /* only allow you to turn of esi in the main request
- else everything gets confused */
+ /*
+ * Only allow you to turn of esi in the main request
+ * else everything gets confused
+ */
if(sp->esis == 0)
- sp->disable_esi = !process_esi;
+ sp->disable_esi = !process_esi;
}
unsigned
@@ -781,15 +783,17 @@
void
VRT_l_req_hash_ignore_busy(struct sess *sp, unsigned ignore_busy)
{
+
CHECK_OBJ_NOTNULL(sp, SESS_MAGIC);
- sp->hash_ignore_busy = !!ignore_busy;
+ sp->hash_ignore_busy = ignore_busy;
}
unsigned
VRT_r_req_hash_ignore_busy(struct sess *sp)
{
+
CHECK_OBJ_NOTNULL(sp, SESS_MAGIC);
- return sp->hash_ignore_busy;
+ return (sp->hash_ignore_busy);
}
/*--------------------------------------------------------------------
@@ -799,15 +803,17 @@
void
VRT_l_req_hash_always_miss(struct sess *sp, unsigned always_miss)
{
+
CHECK_OBJ_NOTNULL(sp, SESS_MAGIC);
- sp->hash_always_miss = !!always_miss;
+ sp->hash_always_miss = always_miss;
}
unsigned
VRT_r_req_hash_always_miss(struct sess *sp)
{
+
CHECK_OBJ_NOTNULL(sp, SESS_MAGIC);
- return sp->hash_always_miss;
+ return (sp->hash_always_miss);
}
/*--------------------------------------------------------------------*/
More information about the varnish-commit
mailing list