diff options
author | dormando <dormando@rydia.net> | 2022-08-16 22:37:28 -0700 |
---|---|---|
committer | dormando <dormando@rydia.net> | 2022-08-16 22:37:28 -0700 |
commit | 14b72ad7ce64fd2adefb840db5aca3d28dded03f (patch) | |
tree | b6df12a91dd11c4a139c400cb8f42665a99d142a /proxy_lua.c | |
parent | d296cc03271197e214038d51b4a60716f2a70e8f (diff) | |
download | memcached-14b72ad7ce64fd2adefb840db5aca3d28dded03f.tar.gz |
proxy: backend object cache was broken
a few versions back the indexes changed. should've been counting up from
the bottom anyway... now reloads should stay fast.
Diffstat (limited to 'proxy_lua.c')
-rw-r--r-- | proxy_lua.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/proxy_lua.c b/proxy_lua.c index 021ae74..d0b0702 100644 --- a/proxy_lua.c +++ b/proxy_lua.c @@ -119,7 +119,7 @@ static int mcplib_backend(lua_State *L) { } // first check our reference table to compare. - lua_pushvalue(L, -4); + lua_pushvalue(L, 1); int ret = lua_gettable(L, lua_upvalueindex(MCP_BACKEND_UPVALUE)); if (ret != LUA_TNIL) { mcp_backend_t *be_orig = luaL_checkudata(L, -1, "mcp.backend"); |