diff options
author | dormando <dormando@rydia.net> | 2022-09-01 13:57:59 -0700 |
---|---|---|
committer | dormando <dormando@rydia.net> | 2022-09-02 23:07:58 -0700 |
commit | d855e7ed9394d3c8ed110f22694930a22894de10 (patch) | |
tree | ac18cb783d67b88eadd3aa11246ca2cfc123d473 /proxy_lua.c | |
parent | 597645db6a2b138710f01ffe5e92e453117b987a (diff) | |
download | memcached-d855e7ed9394d3c8ed110f22694930a22894de10.tar.gz |
proxy: update mcmc and calling conventions
upstream fixes: mcmc would return OK to garbage responses, which was
probably causing issues in the past.
This does remove the MCMC_CODE_MISS and replace it with MCMC_CODE_END.
Diffstat (limited to 'proxy_lua.c')
-rw-r--r-- | proxy_lua.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/proxy_lua.c b/proxy_lua.c index cc0cf75..75bf62e 100644 --- a/proxy_lua.c +++ b/proxy_lua.c @@ -23,7 +23,7 @@ static int mcplib_response_ok(lua_State *L) { static int mcplib_response_hit(lua_State *L) { mcp_resp_t *r = luaL_checkudata(L, -1, "mcp.response"); - if (r->status == MCMC_OK && r->resp.code != MCMC_CODE_MISS) { + if (r->status == MCMC_OK && r->resp.code != MCMC_CODE_END) { lua_pushboolean(L, 1); } else { lua_pushboolean(L, 0); @@ -853,7 +853,7 @@ static void proxy_register_defines(lua_State *L) { X(MCMC_CODE_NOT_STORED); X(MCMC_CODE_OK); X(MCMC_CODE_NOP); - X(MCMC_CODE_MISS); + X(MCMC_CODE_END); X(P_OK); X(CMD_ANY); X(CMD_ANY_STORAGE); |