summaryrefslogtreecommitdiff
path: root/logger.h
diff options
context:
space:
mode:
authordormando <dormando@rydia.net>2020-06-10 22:56:07 -0700
committerdormando <dormando@rydia.net>2021-10-05 12:21:25 -0700
commitd22b66483bce8843110795609386edc6ebf65b69 (patch)
treeac2107f9450c857d9ed125a17aef79a4158da7f9 /logger.h
parent56dc81db316a0b957415e371d20c683fea9d7d2f (diff)
downloadmemcached-d22b66483bce8843110795609386edc6ebf65b69.tar.gz
proxy: initial commit.
See BUILD for compilation details. See t/startfile.lua for configuration examples. (see also https://github.com/memcached/memcached-proxylibs for extensions, config libraries, more examples) NOTE: io_uring mode is _not stable_, will crash. As of this commit it is not recommended to run the proxy in production. If you are interested please let us know, as we are actively stabilizing for production use.
Diffstat (limited to 'logger.h')
-rw-r--r--logger.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/logger.h b/logger.h
index 039f443..6def6f3 100644
--- a/logger.h
+++ b/logger.h
@@ -31,6 +31,11 @@ enum log_entry_type {
LOGGER_COMPACT_END,
LOGGER_COMPACT_FRAGINFO,
#endif
+#ifdef PROXY
+ LOGGER_PROXY_CONFIG,
+ LOGGER_PROXY_RAW,
+ LOGGER_PROXY_ERROR,
+#endif
};
enum logger_ret_type {
@@ -106,7 +111,14 @@ struct logentry_conn_event {
int sfd;
struct sockaddr_in6 addr;
};
-
+#ifdef PROXY
+struct logentry_proxy_raw {
+ unsigned short type;
+ unsigned short code;
+ long elapsed; // elapsed time in usec
+ char cmd[8];
+};
+#endif
/* end intermediary structures */
/* WARNING: cuddled items aren't compatible with warm restart. more code