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
91734c47
Commit
91734c47
authored
Oct 10, 2011
by
Tollef Fog Heen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WRK_Flush was renamed to WRW_Flush a long time ago; update some ifdefed code and comments to match
parent
4620b270
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
cache.h
bin/varnishd/cache.h
+1
-1
cache_wrw.c
bin/varnishd/cache_wrw.c
+2
-2
No files found.
bin/varnishd/cache.h
View file @
91734c47
...
...
@@ -255,7 +255,7 @@ struct exp {
struct
wrw
{
int
*
wfd
;
unsigned
werr
;
/* valid after WR
K
_Flush() */
unsigned
werr
;
/* valid after WR
W
_Flush() */
struct
iovec
*
iov
;
unsigned
siov
;
unsigned
niov
;
...
...
bin/varnishd/cache_wrw.c
View file @
91734c47
...
...
@@ -264,7 +264,7 @@ WRW_Sendfile(struct worker *w, int fd, off_t off, unsigned len)
}
while
(
0
);
#elif defined(__linux__)
do
{
if
(
WR
K
_Flush
(
w
)
==
0
&&
if
(
WR
W
_Flush
(
w
)
==
0
&&
sendfile
(
*
wrw
->
wfd
,
fd
,
&
off
,
len
)
!=
len
)
wrw
->
werr
++
;
}
while
(
0
);
...
...
@@ -293,7 +293,7 @@ WRW_Sendfile(struct worker *w, int fd, off_t off, unsigned len)
}
while
(
0
);
#elif defined(__sun) && defined(HAVE_SENDFILE)
do
{
if
(
WR
K
_Flush
(
w
)
==
0
&&
if
(
WR
W
_Flush
(
w
)
==
0
&&
sendfile
(
*
wrw
->
wfd
,
fd
,
&
off
,
len
)
!=
len
)
wrw
->
werr
++
;
}
while
(
0
);
...
...
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