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
18c07e34
Commit
18c07e34
authored
Dec 04, 2012
by
Geoff Simmons
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
trackrdrd: seen stat updated early (not just after an insert)
parent
c5d2c52b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
trackrdrd.c
trackrdrd/src/trackrdrd.c
+5
-4
No files found.
trackrdrd/src/trackrdrd.c
View file @
18c07e34
...
...
@@ -71,12 +71,12 @@
#include "usage.h"
#define TRACK_TAGS "ReqStart,VCL_log,ReqEnd"
#define TRACKLOG_PREFIX "track "
#define TRACKLOG_PREFIX_LEN (sizeof(TRACKLOG_PREFIX)-1)
#define DEFAULT_CONFIG "/etc/trackrdrd.conf"
/* XXX: should these be configurable ? */
#define TRACKLOG_PREFIX "track "
#define TRACKLOG_PREFIX_LEN (sizeof(TRACKLOG_PREFIX)-1)
#define MAX_STACK_DEPTH 100
#define REQEND_T_VAR "req_endt"
...
...
@@ -150,7 +150,6 @@ static inline dataentry
entry
->
end
=
strlen
(
entry
->
data
);
if
(
entry
->
end
>
tbl
.
data_hi
)
tbl
.
data_hi
=
entry
->
end
;
tbl
.
seen
++
;
MON_StatsUpdate
(
STATS_OCCUPANCY
);
return
entry
;
...
...
@@ -167,6 +166,7 @@ static inline dataentry
return
NULL
;
LOG_Log
(
LOG_WARNING
,
"%s: XID %d not found, attempting insert"
,
VSL_tags
[
tag
],
xid
);
tbl
.
seen
++
;
entry
=
insert
(
xid
,
tag
,
fd
);
if
(
entry
==
NULL
)
return
NULL
;
...
...
@@ -229,7 +229,8 @@ OSL_Track(void *priv, enum VSL_tag_e tag, unsigned fd, unsigned len,
case
SLT_ReqStart
:
if
(
term
)
return
(
0
);
tbl
.
seen
++
;
err
=
Parse_ReqStart
(
ptr
,
len
,
&
xid
);
AZ
(
err
);
LOG_Log
(
LOG_DEBUG
,
"%s: XID=%d"
,
VSL_tags
[
tag
],
xid
);
...
...
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