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
3faa1fd7
Commit
3faa1fd7
authored
Apr 20, 2015
by
Geoff Simmons
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add a write memory barrier before submitting transactions, and a read
mb before reading them to format for log output
parent
6ba2caa8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
varnishevent.c
src/varnishevent.c
+2
-0
writer.c
src/writer.c
+2
-1
No files found.
src/varnishevent.c
View file @
3faa1fd7
...
...
@@ -70,6 +70,7 @@
#include "vtim.h"
#include "vpf.h"
#include "vcs_version.h"
#include "vmb.h"
#define DEFAULT_CONFIG "/etc/varnishevent.conf"
...
...
@@ -220,6 +221,7 @@ submit(tx_t *tx)
{
CHECK_OBJ_NOTNULL
(
tx
,
TX_MAGIC
);
assert
(
OCCUPIED
(
tx
));
VWMB
();
SPSCQ_Enq
(
tx
);
signal_spscq_ready
();
submitted
++
;
...
...
src/writer.c
View file @
3faa1fd7
...
...
@@ -188,7 +188,8 @@ wrt_write(tx_t *tx)
reopen
=
0
;
}
AZ
(
pthread_mutex_unlock
(
&
reopen_lock
));
VRMB
();
VSB_clear
(
os
);
FMT_Format
(
tx
,
os
);
VSB_finish
(
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