]> err.no Git - varnish/commitdiff
Define obj.hash in the correct place, and regen.
authordes <des@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 4 Mar 2008 11:02:25 +0000 (11:02 +0000)
committerdes <des@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 4 Mar 2008 11:02:25 +0000 (11:02 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2552 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/lib/libvcl/vcc_fixed_token.c
varnish-cache/lib/libvcl/vcc_gen_obj.tcl
varnish-cache/lib/libvcl/vcc_obj.c

index 86c9fc03911c87874aa72043b797824fa120dd39..de54d69f896d8481eb595ff89de5e0249fdcad45 100644 (file)
@@ -541,6 +541,7 @@ vcl_output_lang_h(struct vsb *sb)
        vsb_cat(sb, "double VRT_r_obj_prefetch(const struct sess *);\n");
        vsb_cat(sb, "void VRT_l_obj_prefetch(const struct sess *, double);\n");
        vsb_cat(sb, "double VRT_r_obj_lastuse(const struct sess *);\n");
+       vsb_cat(sb, "const char *VRT_r_obj_hash(struct sess *sp);\n");
        vsb_cat(sb, "const char * VRT_r_resp_proto(const struct sess *);\n");
        vsb_cat(sb, "void VRT_l_resp_proto(const struct sess *, const char *, ...);\n");
        vsb_cat(sb, "int VRT_r_resp_status(const struct sess *);\n");
index 3a77f59734c23f84fc8743fce9f6644e2f0b6e95..0e0c73b8423cb30c2afb27cfd7afaefebb8554b6 100755 (executable)
@@ -170,6 +170,10 @@ set spobj {
                {                         hit fetch deliver discard timeout}
                "const struct sess *"
        }
+       { obj.hash
+               RO STRING
+               {                    miss hit fetch deliver                }
+       }
 
        # The response we send back
        { resp.proto
index 5a008ee66423396ca0b3d0ba342cf649c7c5204c..2ab9c03168ca499d5c821cacb0bb4fcbb8742f41 100644 (file)
@@ -179,9 +179,9 @@ struct var vcc_vars[] = {
            0,
            VCL_MET_HIT | VCL_MET_FETCH | VCL_MET_DELIVER | VCL_MET_DISCARD | VCL_MET_TIMEOUT
        },
-       { "obj.hash", HASH, 8,
+       { "obj.hash", STRING, 8,
+           "VRT_r_obj_hash(sp)",
            NULL,
-           "VRT_l_req_hash(sp, ",
            V_RO,
            0,
            VCL_MET_MISS | VCL_MET_HIT | VCL_MET_FETCH | VCL_MET_DELIVER