summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordormando <dormando@rydia.net>2022-01-26 16:57:57 -0800
committerdormando <dormando@rydia.net>2022-01-26 16:57:57 -0800
commit52947e418f437e4aa6fb62e0fad715492ae1e38e (patch)
treed211b7442b97d37cbe288db514916ebab9622713
parentbf3c64d591ae23b4038a51814b3aad3e48cec08d (diff)
downloadmemcached-52947e418f437e4aa6fb62e0fad715492ae1e38e.tar.gz
proxy: fix build issue with uring mode enabled
sorry, I'm still getting back into the swing of things. uring is still a separate configure option so it requires paying attention to test.
-rw-r--r--proto_proxy.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/proto_proxy.c b/proto_proxy.c
index 83bc64b..6ff904c 100644
--- a/proto_proxy.c
+++ b/proto_proxy.c
@@ -1423,8 +1423,7 @@ static void proxy_backend_wrhandler_ur(void *udata, struct io_uring_cqe *cqe) {
be->bad = false;
be->failed_count = 0;
}
- io_pending_proxy_t *io = NULL;
- int res = _flush_pendig_write(be);
+ int res = _flush_pending_write(be);
if (res == -1) {
_reset_bad_backend(be);
// FIXME: backend_failed?
@@ -1477,7 +1476,7 @@ static void proxy_event_handler_ur(void *udata, struct io_uring_cqe *cqe) {
P_DEBUG("%s: deferring IO pending connecting\n", __func__);
flags |= EV_WRITE;
} else {
- flags = flush_pending_write(be);
+ flags = _flush_pending_write(be);
}
if (flags == -1) {