Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libvmod-weightadjust
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-weightadjust
Commits
a15ab191
Unverified
Commit
a15ab191
authored
Nov 09, 2022
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adjust to vxid changes in varnish-cache
parent
7b37c0e3
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
4 deletions
+8
-4
vmod_weightadjust.c
src/vmod_weightadjust.c
+1
-1
wadj_thread.c
src/wadj_thread.c
+3
-3
wadj_thread.h
src/wadj_thread.h
+4
-0
No files found.
src/vmod_weightadjust.c
View file @
a15ab191
...
@@ -73,7 +73,7 @@ msg(VRT_CTX, const char *fmt, ...)
...
@@ -73,7 +73,7 @@ msg(VRT_CTX, const char *fmt, ...)
VSLbv
(
ctx
->
vsl
,
SLT_VCL_Error
,
fmt
,
args
);
VSLbv
(
ctx
->
vsl
,
SLT_VCL_Error
,
fmt
,
args
);
else
else
/* Should this ever happen in vcl_fini() ... */
/* Should this ever happen in vcl_fini() ... */
VSL
(
SLT_VCL_Error
,
0
,
fmt
,
args
);
VSL
(
SLT_VCL_Error
,
NO_VXID
,
fmt
,
args
);
va_end
(
args
);
va_end
(
args
);
}
}
...
...
src/wadj_thread.c
View file @
a15ab191
...
@@ -64,17 +64,17 @@ int VCP_Open(struct conn_pool *, vtim_dur tmo, VCL_IP *, int*);
...
@@ -64,17 +64,17 @@ int VCP_Open(struct conn_pool *, vtim_dur tmo, VCL_IP *, int*);
#include "wadj_thread.h"
#include "wadj_thread.h"
#define POKE_ERR(prop, fmt, ...) \
#define POKE_ERR(prop, fmt, ...) \
VSL(SLT_VCL_Error,
0
, "vmod weightadjust error: poke %s.%s " fmt, \
VSL(SLT_VCL_Error,
NO_VXID
, "vmod weightadjust error: poke %s.%s " fmt, \
(prop)->vd->dir->vcl_name, (prop)->be->vcl_name, \
(prop)->vd->dir->vcl_name, (prop)->be->vcl_name, \
__VA_ARGS__)
__VA_ARGS__)
#define VPOKE_TRACE(prop, fmt, ...) \
#define VPOKE_TRACE(prop, fmt, ...) \
VSL(SLT_Debug,
0
, "vmod weightadjust: poke %s.%s " fmt, \
VSL(SLT_Debug,
NO_VXID
, "vmod weightadjust: poke %s.%s " fmt, \
(prop)->vd->dir->vcl_name, (prop)->be->vcl_name, \
(prop)->vd->dir->vcl_name, (prop)->be->vcl_name, \
__VA_ARGS__)
__VA_ARGS__)
#define POKE_TRACE(prop, str) \
#define POKE_TRACE(prop, str) \
VSL(SLT_Debug,
0
, "vmod weightadjust: poke %s.%s " str, \
VSL(SLT_Debug,
NO_VXID
, "vmod weightadjust: poke %s.%s " str, \
(prop)->vd->dir->vcl_name, (prop)->be->vcl_name)
(prop)->vd->dir->vcl_name, (prop)->be->vcl_name)
/* largely copied from vbp_poke */
/* largely copied from vbp_poke */
...
...
src/wadj_thread.h
View file @
a15ab191
...
@@ -27,6 +27,10 @@
...
@@ -27,6 +27,10 @@
* SUCH DAMAGE.
* SUCH DAMAGE.
*/
*/
#ifndef NO_VXID
#define NO_VXID (0U)
#endif
enum
run_state_e
{
enum
run_state_e
{
STOPPED
=
0
,
STOPPED
=
0
,
STOPPING
,
STOPPING
,
...
...
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