r4850 - trunk/varnish-cache/bin/varnishd
phk at varnish-cache.org
phk at varnish-cache.org
Fri May 21 13:11:13 CEST 2010
Author: phk
Date: 2010-05-21 13:11:13 +0200 (Fri, 21 May 2010)
New Revision: 4850
Modified:
trunk/varnish-cache/bin/varnishd/mgt_shmem.c
Log:
Move free indication to class field.
Modified: trunk/varnish-cache/bin/varnishd/mgt_shmem.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/mgt_shmem.c 2010-05-21 10:53:34 UTC (rev 4849)
+++ trunk/varnish-cache/bin/varnishd/mgt_shmem.c 2010-05-21 11:11:13 UTC (rev 4850)
@@ -80,7 +80,7 @@
while (1) {
CHECK_OBJ_NOTNULL(sha, SHMALLOC_MAGIC);
- if (strcmp(sha->type, "Free")) {
+ if (strcmp(sha->class, "Free")) {
sha = SHA_NEXT(sha);
continue;
}
@@ -95,7 +95,7 @@
memset(sha2, 0, sizeof *sha2);
sha2->magic = SHMALLOC_MAGIC;
sha2->len = sha->len - size;
- bprintf(sha2->type, "%s", "Free");
+ bprintf(sha2->class, "%s", "Free");
MEMORY_BARRIER();
sha->len = size;
@@ -298,7 +298,7 @@
loghead->head.magic = SHMALLOC_MAGIC;
loghead->head.len =
(uint8_t*)(loghead) + size - (uint8_t*)&loghead->head;
- bprintf(loghead->head.type, "%s", "Free");
+ bprintf(loghead->head.class, "%s", "Free");
MEMORY_BARRIER();
VSL_stats = mgt_SHM_Alloc(sizeof *VSL_stats, VSL_CLASS_STAT, "", "");
More information about the varnish-commit
mailing list