diff options
author | dormando <dormando@rydia.net> | 2022-02-02 23:53:02 -0800 |
---|---|---|
committer | dormando <dormando@rydia.net> | 2022-02-04 13:56:25 -0800 |
commit | 838fda3fdacfd16511c24c5638b8e2de49224c39 (patch) | |
tree | a4eef5a0b02e87def76656a7b1ad19743864240f /memcached.h | |
parent | f352f0e062abb2ac957829352a429076d6e30d2d (diff) | |
download | memcached-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.h | 3 |
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 |