diff options
author | dormando <dormando@rydia.net> | 2021-12-06 15:32:22 -0800 |
---|---|---|
committer | dormando <dormando@rydia.net> | 2022-01-12 14:07:22 -0800 |
commit | 673794397d67ec9acc9aa43d6e9dbfda5e8cc203 (patch) | |
tree | 1f4a6d000d81ea150ef69b83918ad2c8750b0393 | |
parent | 6008fd665fdc4f77358eb78087b1679fc6435e65 (diff) | |
download | memcached-673794397d67ec9acc9aa43d6e9dbfda5e8cc203.tar.gz |
proxy: compile fix for non-uring mode.
-rw-r--r-- | proto_proxy.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/proto_proxy.c b/proto_proxy.c index 2063562..797a57d 100644 --- a/proto_proxy.c +++ b/proto_proxy.c @@ -3002,7 +3002,9 @@ static int mcplib_backend_connect_timeout(lua_State *L) { STAT_L(ctx); ctx->timeouts.connect.tv_sec = seconds; +#ifdef HAVE_LIBURING ctx->timeouts.connect_ur.tv_sec = seconds; +#endif STAT_UL(ctx); return 0; @@ -3014,7 +3016,9 @@ static int mcplib_backend_retry_timeout(lua_State *L) { STAT_L(ctx); ctx->timeouts.retry.tv_sec = seconds; +#ifdef HAVE_LIBURING ctx->timeouts.retry_ur.tv_sec = seconds; +#endif STAT_UL(ctx); return 0; @@ -3026,7 +3030,9 @@ static int mcplib_backend_read_timeout(lua_State *L) { STAT_L(ctx); ctx->timeouts.read.tv_sec = seconds; +#ifdef HAVE_LIBURING ctx->timeouts.read_ur.tv_sec = seconds; +#endif STAT_UL(ctx); return 0; |