Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
18572b1d
Commit
18572b1d
authored
Feb 26, 2018
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drop some insights from working with the code
parent
7b22e04f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
2 deletions
+16
-2
vut.c
lib/libvarnishapi/vut.c
+16
-2
No files found.
lib/libvarnishapi/vut.c
View file @
18572b1d
...
@@ -361,8 +361,22 @@ VUT_Main(struct VUT *vut)
...
@@ -361,8 +361,22 @@ VUT_Main(struct VUT *vut)
(
void
)
VSLQ_Flush
(
vut
->
vslq
,
vut_dispatch
,
vut
);
(
void
)
VSLQ_Flush
(
vut
->
vslq
,
vut_dispatch
,
vut
);
}
}
// We must repeatedly call VSM_Status() when !hascursor
/* We must repeatedly call VSM_Status() when !hascursor
// to make VSM discover our segment.
* to make VSM discover our segment.
*
* XXX consider moving the error handling to VSLQ_Dispatch.
* or some other VSL utility function
* Reasons:
*
* - it does not seem to make much sense to call VSM_StillValid
* in vsl if that can only detect invalid segments after
* VSM_Status has run, so it appears both should be
* consolidated
*
* - not all VSL Clients will use VUT, yet the log abandoned/
* overrun situation will be occur for all of them.
*/
if
(
vut
->
vsm
!=
NULL
&&
if
(
vut
->
vsm
!=
NULL
&&
(
VSM_Status
(
vut
->
vsm
)
&
VSM_WRK_RESTARTED
))
{
(
VSM_Status
(
vut
->
vsm
)
&
VSM_WRK_RESTARTED
))
{
if
(
hascursor
<
1
)
{
if
(
hascursor
<
1
)
{
...
...
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