diff options
author | Hemal Shah <hemal@stripe.com> | 2022-10-19 19:17:13 -0700 |
---|---|---|
committer | dormando <dormando@rydia.net> | 2023-03-15 17:16:36 -0700 |
commit | 9b3c946f485309cdf50f7fb1622707b5373e33f3 (patch) | |
tree | 50442521e1d2912caddfe0266f5223b0f4b48fb3 /memcached.h | |
parent | c04701654413719d4abd7645c6d7b3fba4255e85 (diff) | |
download | memcached-9b3c946f485309cdf50f7fb1622707b5373e33f3.tar.gz |
log: Add a new watcher to watch for deletions.
`watch deletions`: would log all keys which are deleted using either `delete` or `md` command.
The log line would contain the command used, the key, the clsid and size of the deleted item.
Items which result in delete miss or are marked as stale wouldn't show up in the logs
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 7ebe65f..3c54931 100644 --- a/memcached.h +++ b/memcached.h @@ -272,6 +272,9 @@ enum close_reasons { #define CAS_ALLOW_STALE true #define CAS_NO_STALE false +#define LOG_TYPE_DELETE 1 +#define LOG_TYPE_META_DELETE 2 + enum store_item_type { NOT_STORED=0, STORED, EXISTS, NOT_FOUND, TOO_LARGE, NO_MEMORY }; |