Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnishevent
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
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
varnishevent
Commits
e59bc293
Commit
e59bc293
authored
Apr 23, 2015
by
Geoff Simmons
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
writer thread returns free lists before re-opening output, and after
a ready output timeout
parent
73d12385
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
11 deletions
+13
-11
writer.c
src/writer.c
+13
-11
No files found.
src/writer.c
View file @
e59bc293
...
@@ -172,6 +172,7 @@ wrt_write(tx_t *tx)
...
@@ -172,6 +172,7 @@ wrt_write(tx_t *tx)
AZ
(
pthread_mutex_lock
(
&
reopen_lock
));
AZ
(
pthread_mutex_lock
(
&
reopen_lock
));
if
(
reopen
&&
fo
!=
stdout
)
{
if
(
reopen
&&
fo
!=
stdout
)
{
wrt_return_freelist
();
if
(
fflush
(
fo
)
!=
0
)
if
(
fflush
(
fo
)
!=
0
)
LOG_Log
(
LOG_ERR
,
"Cannot flush to %s, DATA DISCARDED: %s"
,
LOG_Log
(
LOG_ERR
,
"Cannot flush to %s, DATA DISCARDED: %s"
,
config
.
output_file
,
strerror
(
errno
));
config
.
output_file
,
strerror
(
errno
));
...
@@ -209,6 +210,7 @@ wrt_write(tx_t *tx)
...
@@ -209,6 +210,7 @@ wrt_write(tx_t *tx)
}
}
}
}
else
if
(
errnum
==
0
)
{
else
if
(
errnum
==
0
)
{
wrt_return_freelist
();
LOG_Log
(
LOG_ERR
,
LOG_Log
(
LOG_ERR
,
"Timeout waiting for ready output, DATA DISCARDED: %s"
,
"Timeout waiting for ready output, DATA DISCARDED: %s"
,
VSB_data
(
os
));
VSB_data
(
os
));
...
...
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