Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libvmod-vtstor
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
uplex-varnish
libvmod-vtstor
Commits
f8914faa
Commit
f8914faa
authored
Feb 25, 2015
by
Geoff Simmons
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vxid() restored -- uses ctx workspace and does not require a private context
parent
798cba43
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
10 deletions
+11
-10
vmod_vtstor.c
src/vmod_vtstor.c
+10
-9
vmod_vtstor.vcc
src/vmod_vtstor.vcc
+1
-1
No files found.
src/vmod_vtstor.c
View file @
f8914faa
...
...
@@ -156,20 +156,21 @@ vmod_vtstor_delete(VRT_CTX, struct vmod_vtstor_vtstor *vmi, VCL_HEADER hdr)
}
}
#if 0
VCL_STRING
__match_proto__
(
td_vmod_vxid
)
vmod_vxid(VRT_CTX
, struct vmod_priv *priv
)
vmod_vxid
(
VRT_CTX
)
{
char
*
p
;
CHECK_OBJ_NOTNULL
(
ctx
,
VRT_CTX_MAGIC
);
CHECK_OBJ_NOTNULL
(
ctx
->
req
,
REQ_MAGIC
);
if(priv->priv == NULL) {
priv->priv = malloc(sizeof(char) * 11);
snprintf(priv->priv, 11, "%u", ctx->req->sp->vxid);
priv->free = free;
}
return(priv->priv);
CHECK_OBJ_NOTNULL
(
ctx
->
req
->
sp
,
SESS_MAGIC
);
p
=
WS_Printf
(
ctx
->
ws
,
"%u"
,
ctx
->
req
->
sp
->
vxid
);
if
(
p
==
NULL
)
VSLb
(
ctx
->
vsl
,
SLT_VCL_Error
,
"vmod vtstor: insufficient workspace in vxid()"
);
return
p
;
}
#endif
VCL_STRING
__match_proto__
(
td_vmod_version
)
vmod_version
(
VRT_CTX
)
...
...
src/vmod_vtstor.vcc
View file @
f8914faa
...
...
@@ -33,6 +33,6 @@ $Method VOID .store(STRING, HEADER)
$Method STRING .get(HEADER)
$Method VOID .delete(HEADER)
# $Function STRING vxid(PRIV_TASK
)
$Function STRING vxid(
)
$Function STRING version()
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment