summaryrefslogtreecommitdiff
path: root/memcached.h
diff options
context:
space:
mode:
authordormando <dormando@rydia.net>2022-02-02 23:53:02 -0800
committerdormando <dormando@rydia.net>2022-02-04 13:56:25 -0800
commit838fda3fdacfd16511c24c5638b8e2de49224c39 (patch)
treea4eef5a0b02e87def76656a7b1ad19743864240f /memcached.h
parentf352f0e062abb2ac957829352a429076d6e30d2d (diff)
downloadmemcached-838fda3fdacfd16511c24c5638b8e2de49224c39.tar.gz
proxy: fix bug/crash for set commands
if a conn goes to sleep while reading set data from the network its coroutine would be lost, and crash/corruption on next resume. this now properly handles lifetime/cleanup of the coroutine.
Diffstat (limited to 'memcached.h')
-rw-r--r--memcached.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/memcached.h b/memcached.h
index f096f44..7826c41 100644
--- a/memcached.h
+++ b/memcached.h
@@ -819,6 +819,9 @@ struct conn {
int io_queues_submitted; /* see notes on io_queue_t */
io_queue_t io_queues[IO_QUEUE_COUNT]; /* set of deferred IO queues. */
+#ifdef PROXY
+ unsigned int proxy_coro_ref; /* lua reference for active coroutine */
+#endif
#ifdef EXTSTORE
unsigned int recache_counter;
#endif