diff options
author | dormando <dormando@rydia.net> | 2022-09-01 22:44:44 -0700 |
---|---|---|
committer | dormando <dormando@rydia.net> | 2022-09-15 11:35:19 -0700 |
commit | 725954d3a37ff0596f4a8e53c5746eec3a30166d (patch) | |
tree | e6efdda62ce6a12921e4c7df9a8ac0b997e9501d /memcached.c | |
parent | d855e7ed9394d3c8ed110f22694930a22894de10 (diff) | |
download | memcached-725954d3a37ff0596f4a8e53c5746eec3a30166d.tar.gz |
proxy: remove most references to settings global
should make isolation/testing earlier.
Diffstat (limited to 'memcached.c')
-rw-r--r-- | memcached.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/memcached.c b/memcached.c index 7871fe8..86ac064 100644 --- a/memcached.c +++ b/memcached.c @@ -1887,7 +1887,7 @@ void server_stats(ADD_STAT add_stats, conn *c) { storage_stats(add_stats, c); #endif #ifdef PROXY - proxy_stats(add_stats, c); + proxy_stats(settings.proxy_ctx, add_stats, c); #endif #ifdef TLS if (settings.ssl_enabled) { @@ -6093,7 +6093,7 @@ int main (int argc, char **argv) { /* start up worker threads if MT mode */ #ifdef PROXY if (settings.proxy_enabled) { - proxy_init(settings.proxy_uring); + settings.proxy_ctx = proxy_init(settings.proxy_uring); if (proxy_load_config(settings.proxy_ctx) != 0) { exit(EXIT_FAILURE); } |