Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
slash
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
slash
Commits
414932a6
Unverified
Commit
414932a6
authored
Jun 19, 2023
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use §Restrict in loadmasters
parent
5ca01e46
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
9 deletions
+15
-9
vmod_slash.man.rst
src/vmod_slash.man.rst
+9
-2
vmod_slash.vcc
src/vmod_slash.vcc
+5
-2
vmod_slash_loadmasters.c
src/vmod_slash_loadmasters.c
+1
-5
No files found.
src/vmod_slash.man.rst
View file @
414932a6
...
...
@@ -1073,8 +1073,11 @@ the same backend momentarily. This effect should average out.
VOID xloadmaster_rr.add_storage(STEVEDORE)
------------------------------------------
Add a storage to the loadmaster. May only be called from ``vcl_init
{}``.
Add a storage to the loadmaster.
Restricted to: ``vcl_init``.
.. _xloadmaster_rr.storage():
...
...
@@ -1103,6 +1106,10 @@ VOID xloadmaster_hash.add_storage(STEVEDORE)
Same as `xloadmaster_rr.add_storage()`_.
Restricted to: ``vcl_init``.
.. _xloadmaster_hash.storage():
STEVEDORE xloadmaster_hash.storage()
...
...
src/vmod_slash.vcc
View file @
414932a6
...
...
@@ -982,8 +982,9 @@ the same backend momentarily. This effect should average out.
$Method VOID .add_storage(STEVEDORE)
Add a storage to the loadmaster. May only be called from ``vcl_init
{}``.
Add a storage to the loadmaster.
$Restrict vcl_init
$Method STEVEDORE .storage()
...
...
@@ -1003,6 +1004,8 @@ $Method VOID .add_storage(STEVEDORE)
Same as `xloadmaster_rr.add_storage()`_.
$Restrict vcl_init
$Method STEVEDORE .storage()
Same as `xloadmaster_rr.storage()`_.
...
...
src/vmod_slash_loadmasters.c
View file @
414932a6
...
...
@@ -234,11 +234,7 @@ vmod_loadmaster_ ## ll ## _add_storage(VRT_CTX, \
lc = lm->lc; \
CHECK_OBJ_NOTNULL(lc, LOADMASTER_COMMON_MAGIC); \
\
if (ctx->method != VCL_MET_INIT) { \
VRT_fail(ctx, "%s.add_storage() " \
"can only be called from vcl_init{}", lc_name(lc)); \
return; \
} \
assert(ctx->method == VCL_MET_INIT); \
\
if (stv == NULL) { \
VRT_fail(ctx, "%s.add_storage() can not be used " \
...
...
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