summaryrefslogtreecommitdiff
path: root/proxy_lua.c
diff options
context:
space:
mode:
authordormando <dormando@rydia.net>2022-08-16 22:37:28 -0700
committerdormando <dormando@rydia.net>2022-08-16 22:37:28 -0700
commit14b72ad7ce64fd2adefb840db5aca3d28dded03f (patch)
treeb6df12a91dd11c4a139c400cb8f42665a99d142a /proxy_lua.c
parentd296cc03271197e214038d51b4a60716f2a70e8f (diff)
downloadmemcached-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.c2
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");