summaryrefslogtreecommitdiff
path: root/proxy_lua.c
diff options
context:
space:
mode:
authordormando <dormando@rydia.net>2022-11-22 22:52:08 -0800
committerdormando <dormando@rydia.net>2022-12-01 22:07:32 -0800
commit1ba5df8410e7ccc035390438e45b26c2d11ede5c (patch)
treeff0e1b06e15c411d8418a94e762cc7744fd12f07 /proxy_lua.c
parent683bb98a55ba19f69c4e2a60b9104ed2edc971c3 (diff)
downloadmemcached-1ba5df8410e7ccc035390438e45b26c2d11ede5c.tar.gz
proxy: add mcp.AWAIT_BACKGROUND
mcp.await(request, pools, 0, mcp.AWAIT_BACKGROUND) will, instead of waiting on any request to return, simply return an empty table as soon as the background requests are dispatched.
Diffstat (limited to 'proxy_lua.c')
-rw-r--r--proxy_lua.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/proxy_lua.c b/proxy_lua.c
index 495c0de..2172733 100644
--- a/proxy_lua.c
+++ b/proxy_lua.c
@@ -866,6 +866,7 @@ static void proxy_register_defines(lua_State *L) {
X(AWAIT_OK);
X(AWAIT_FIRST);
X(AWAIT_FASTGOOD);
+ X(AWAIT_BACKGROUND);
CMD_FIELDS
#undef X
}