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
e2163244
Commit
e2163244
authored
Feb 18, 2013
by
Geoff Simmons
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
trackrdrd: removed logging of worker's pthread IDs (sadly not portable)
parent
204eb4b8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
worker.c
trackrdrd/src/worker.c
+2
-4
No files found.
trackrdrd/src/worker.c
View file @
e2163244
...
...
@@ -65,7 +65,6 @@ struct worker_data_s {
unsigned
magic
;
#define WORKER_DATA_MAGIC 0xd8eef137
unsigned
id
;
pthread_t
tid
;
unsigned
status
;
/* exit status */
wrk_state_e
state
;
...
...
@@ -142,7 +141,6 @@ static void
LOG_Log
(
LOG_INFO
,
"Worker %d: starting"
,
wrk
->
id
);
CHECK_OBJ_NOTNULL
(
wrk
,
WORKER_DATA_MAGIC
);
wrk
->
state
=
WRK_INITIALIZING
;
wrk
->
tid
=
pthread_self
();
err
=
MQ_WorkerInit
(
&
amq_worker
);
if
(
err
!=
NULL
)
{
...
...
@@ -312,8 +310,8 @@ WRK_Stats(void)
for
(
int
i
=
0
;
i
<
config
.
nworkers
;
i
++
)
{
wrk
=
thread_data
[
i
].
wrk_data
;
LOG_Log
(
LOG_INFO
,
"Worker %d
tid %u
(%s): seen=%d waits=%d sent=%d failed=%d"
,
wrk
->
id
,
wrk
->
tid
,
statename
[
wrk
->
state
],
wrk
->
deqs
,
wrk
->
waits
,
wrk
->
sends
,
LOG_Log
(
LOG_INFO
,
"Worker %d (%s): seen=%d waits=%d sent=%d failed=%d"
,
wrk
->
id
,
statename
[
wrk
->
state
],
wrk
->
deqs
,
wrk
->
waits
,
wrk
->
sends
,
wrk
->
fails
);
}
}
...
...
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