[MINOR] remove now obsolete ana_state from the session struct

This one is not used anymore.
This commit is contained in:
Willy Tarreau 2009-10-04 14:24:59 +02:00
parent f5a885fd28
commit 65671abd32
4 changed files with 2 additions and 5 deletions

View File

@ -173,7 +173,6 @@ struct session {
struct server *prev_srv; /* the server the was running on, after a redispatch, otherwise NULL */
struct pendconn *pend_pos; /* if not NULL, points to the position in the pending queue */
struct http_txn txn; /* current HTTP transaction being processed. Should become a list. */
int ana_state; /* analyser state, used by analysers, always set to zero between them */
struct {
int logwait; /* log fields waiting to be collected : LW_* */
struct timeval accept_date; /* date of the accept() in user date */

View File

@ -184,7 +184,6 @@ int event_accept(int fd) {
*/
s->be = s->fe = p;
s->ana_state = 0; /* analysers may change it but must reset it upon exit */
s->req = s->rep = NULL; /* will be allocated later */
s->si[0].state = s->si[0].prev_state = SI_ST_EST;

View File

@ -1574,8 +1574,8 @@ int stats_dump_sess_to_buffer(struct session *s, struct buffer *rep)
}
chunk_printf(&msg,
" as=%d ts=%02x age=%s calls=%d",
curr_sess->ana_state, curr_sess->task->state,
" ts=%02x age=%s calls=%d",
curr_sess->task->state,
human_time(now.tv_sec - curr_sess->logs.tv_accept.tv_sec, 1),
curr_sess->task->calls);

View File

@ -439,7 +439,6 @@ int uxst_event_accept(int fd) {
s->listener = l;
s->fe = s->be = l->private;
s->ana_state = 0;
s->req = s->rep = NULL; /* will be allocated later */
s->si[0].state = s->si[0].prev_state = SI_ST_EST;