summaryrefslogtreecommitdiff
path: root/proxy.h
diff options
context:
space:
mode:
authordormando <dormando@rydia.net>2022-03-02 19:30:26 -0800
committerdormando <dormando@rydia.net>2022-03-02 19:32:20 -0800
commit1d825ef0a539e03db69984a89a6d47ee5d4d27ee (patch)
tree8f361189f9fee0a86a33a0c5f820b99cba4b8f76 /proxy.h
parent31ccfc19fcbe15a5f40c559483c4c95082781ece (diff)
downloadmemcached-1d825ef0a539e03db69984a89a6d47ee5d4d27ee.tar.gz
proxy: allow await() to be called recursively
previously mcp.await() only worked if it was called before any other dispatches. also fixes a bug if the supplied pool table was key=value instead of an array-type table.
Diffstat (limited to 'proxy.h')
-rw-r--r--proxy.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/proxy.h b/proxy.h
index fea6879..86b4aa9 100644
--- a/proxy.h
+++ b/proxy.h
@@ -440,7 +440,7 @@ enum mcp_await_e {
AWAIT_FIRST, // return the result from the first pool
};
int mcplib_await(lua_State *L);
-int mcplib_await_run(conn *c, lua_State *L, int coro_ref);
+int mcplib_await_run(conn *c, mc_resp *resp, lua_State *L, int coro_ref);
int mcplib_await_return(io_pending_proxy_t *p);
// user stats interface