[master] dc55fe1 Add a VSL tag "Storage" which tells us which stevedore the object went into.

Poul-Henning Kamp phk at varnish-cache.org
Sun Nov 10 09:39:15 CET 2013


commit dc55fe108e7633c478e8150e741d44ee6c64a561
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Sun Nov 10 08:38:27 2013 +0000

    Add a VSL tag "Storage" which tells us which stevedore the object
    went into.

diff --git a/bin/varnishd/storage/stevedore.c b/bin/varnishd/storage/stevedore.c
index 5d91630..dd9d7d3 100644
--- a/bin/varnishd/storage/stevedore.c
+++ b/bin/varnishd/storage/stevedore.c
@@ -296,6 +296,7 @@ STV_MkObject(struct stevedore *stv, struct busyobj *bo,
 	o->objcore->methods = &default_oc_methods;
 	o->objcore->priv = o;
 	o->objcore->priv2 = (uintptr_t)stv;
+	VSLb(bo->vsl, SLT_Storage, "%s %s", stv->name, stv->ident);
 	return (o);
 }
 
diff --git a/include/tbl/vsl_tags.h b/include/tbl/vsl_tags.h
index 8ee6b2a..f4e5b2f 100644
--- a/include/tbl/vsl_tags.h
+++ b/include/tbl/vsl_tags.h
@@ -451,4 +451,13 @@ SLTM(VSL, 0, "VSL API warnings and error message",
 	" reading the shared memory log.\n\n"
 )
 
+SLTM(Storage, 0, "Where object is stored",
+	"Type and name of stevedore object is stored in.\n\n"
+	"The format is::\n\n"
+	"\t%s %s\n"
+	"\t|  |\n"
+	"\t|  +- Name of stevedore\n"
+	"\t+---- Type (\"malloc\", \"file\", \"persistent\" etc.)\n"
+	"\n"
+)
 #undef NODEF_NOTICE



More information about the varnish-commit mailing list