]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
[CLEANUP] stats: use stksess_kill() to remove table entries
authorWilly Tarreau <w@1wt.eu>
Tue, 10 Aug 2010 09:11:40 +0000 (11:11 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 10 Aug 2010 16:04:16 +0000 (18:04 +0200)
Using it will be more reliable in the long term as we'll only have
to modify stksess_kill() if we want to extend the tables.

src/dumpstats.c

index a6ce0cf502998337bdd0a5853be2ff7f6ec1decb..526e0f575e9c5a90afc29cb97ebd087ea1ea78f2 100644 (file)
@@ -546,10 +546,7 @@ int stats_sock_parse_request(struct stream_interface *si, char *line)
                                return 1;
                        }
 
-                       eb32_delete(&ts->exp);
-                       ebmb_delete(&ts->key);
-                       stksess_free(&px->table, ts);
-
+                       stksess_kill(&px->table, ts);
                        /* end of processing */
                        return 1;
                }