diff options
author | dormando <dormando@rydia.net> | 2022-09-23 12:30:03 -0700 |
---|---|---|
committer | dormando <dormando@rydia.net> | 2022-09-27 12:38:25 -0700 |
commit | 1ba54b05a4a23d1acd85b5c14384ac8cbaed8478 (patch) | |
tree | 934fcdaca39a8cc7935c5e204fa6d36e129a0a49 /proxy.h | |
parent | 725954d3a37ff0596f4a8e53c5746eec3a30166d (diff) | |
download | memcached-1ba54b05a4a23d1acd85b5c14384ac8cbaed8478.tar.gz |
proxy: add mcp.await FASTGOOD flag
returns early on a hit, else waits for N non-error responses.
Diffstat (limited to 'proxy.h')
-rw-r--r-- | proxy.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -444,6 +444,7 @@ enum mcp_await_e { AWAIT_ANY, // any response, including errors, AWAIT_OK, // any non-error response AWAIT_FIRST, // return the result from the first pool + AWAIT_FASTGOOD, // returns on first hit or majority non-error }; int mcplib_await(lua_State *L); int mcplib_await_run(conn *c, mc_resp *resp, lua_State *L, int coro_ref); |