]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: lua: remove the session pointer from hlua_channel
authorWilly Tarreau <w@1wt.eu>
Tue, 10 Mar 2015 12:50:03 +0000 (13:50 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 11 Mar 2015 19:41:47 +0000 (20:41 +0100)
It was only used to find what side the channel belongs to.

include/types/hlua.h
src/hlua.c

index 88a8b8d2e9b4afe332e20faa30c716e5237c39a4..2275671004ca8ae28fedc8b36e44c94fd692415c 100644 (file)
@@ -133,7 +133,6 @@ struct hlua_socket {
  */
 struct hlua_channel {
        struct channel *chn;
-       struct session *s;
 };
 
 #else /* USE_LUA */
index 1b6df67ee223d52c2eef2c1597cf1f467c33d893..0b82e922aaf1a42b965e9650a043941e8a120431 100644 (file)
@@ -2077,7 +2077,6 @@ static int hlua_channel_new(lua_State *L, struct session *s, struct channel *cha
        chn = MAY_LJMP(lua_newuserdata(L, sizeof(*chn)));
        lua_rawseti(L, -2, 0);
        chn->chn = channel;
-       chn->s = s;
 
        /* Pop a class sesison metatable and affect it to the userdata. */
        lua_rawgeti(L, LUA_REGISTRYINDEX, class_channel_ref);