diff options
author | dormando <dormando@rydia.net> | 2023-03-04 21:44:24 -0800 |
---|---|---|
committer | dormando <dormando@rydia.net> | 2023-03-26 16:48:37 -0700 |
commit | e0fa1fe46aeb9e405cb58234f6016b2c48a10777 (patch) | |
tree | decf57c8e0a321c6e4094391b32e2d7bfbbfddc4 /memcached.h | |
parent | 923df263b5e34449acee2ce24906653c7d8808e1 (diff) | |
download | memcached-e0fa1fe46aeb9e405cb58234f6016b2c48a10777.tar.gz |
proxy: restrict functions for lua config vs route
Also changes the way the global context and thread contexts are fetched
from lua; via the VM extra space instead of upvalues, which is a little
faster and more universal.
It was always erroneous to run a lot of the config functions from routes
and vice versa, but there was no consistent strictness so users could
get into trouble.
Diffstat (limited to 'memcached.h')
-rw-r--r-- | memcached.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/memcached.h b/memcached.h index 3c54931..68d0ab0 100644 --- a/memcached.h +++ b/memcached.h @@ -719,7 +719,8 @@ typedef struct { #endif int napi_id; /* napi id associated with this thread */ #ifdef PROXY - void *L; + void *proxy_ctx; // proxy global context + void *L; // lua VM void *proxy_hooks; void *proxy_user_stats; void *proxy_int_stats; |