Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
trackrdrd
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
trackrdrd
Commits
c9db526a
Commit
c9db526a
authored
Dec 06, 2012
by
Geoff Simmons
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
trackrdrd: fixed bug in the queue full wait condition
fixed cksum in regression test
parent
91bb1902
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
regress.sh
trackrdrd/src/test/regress.sh
+1
-1
trackrdrd.c
trackrdrd/src/trackrdrd.c
+1
-1
No files found.
trackrdrd/src/test/regress.sh
View file @
c9db526a
...
...
@@ -22,7 +22,7 @@ CMD="../trackrdrd -D -f varnish.binlog -l - -d -c test.conf"
# the user running it
CKSUM
=
$(
$CMD
|
sed
-e
's/\(initializing\) \(.*\)/\1/'
|
sed
-e
's/\(Running as\) \([a-zA-Z0-9]*\)$/\1/'
|
grep
-v
'Not running as root'
|
cksum
)
if
[
"
$CKSUM
"
!=
'
1675646904 232318
'
]
;
then
if
[
"
$CKSUM
"
!=
'
2764833651 232316
'
]
;
then
echo
"ERROR: Regression test incorrect cksum:
$CKSUM
"
exit
1
fi
...
...
trackrdrd/src/trackrdrd.c
View file @
c9db526a
...
...
@@ -122,7 +122,7 @@ submit(unsigned xid)
tbl
.
wait_qfull
++
;
LOG_Log
(
LOG_ALERT
,
"%s"
,
"Internal queue full, waiting for dequeue"
);
AZ
(
pthread_mutex_lock
(
&
spmcq_nonfull_lock
));
AZ
(
pthread_cond_wait
(
&
spmcq_nonfull_cond
,
&
spmcq_non
empty
_lock
));
AZ
(
pthread_cond_wait
(
&
spmcq_nonfull_cond
,
&
spmcq_non
full
_lock
));
}
AZ
(
pthread_cond_signal
(
&
spmcq_nonempty_cond
));
tbl
.
submitted
++
;
...
...
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