[MINOR] remove now obsolete ana_state from the session struct
authorWilly Tarreau <w@1wt.eu>
Sun, 4 Oct 2009 12:24:59 +0000 (14:24 +0200)
committerWilly Tarreau <w@1wt.eu>
Sun, 4 Oct 2009 12:24:59 +0000 (14:24 +0200)
This one is not used anymore.

include/types/session.h
src/client.c
src/dumpstats.c
src/proto_uxst.c

index 356bdee..226e00c 100644 (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 */
index ba58182..ec768d8 100644 (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;
index 54f8bb8..14cc519 100644 (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);
 
index 41ae9c6..84a38c6 100644 (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;