From 9b3c946f485309cdf50f7fb1622707b5373e33f3 Mon Sep 17 00:00:00 2001 From: Hemal Shah Date: Wed, 19 Oct 2022 19:17:13 -0700 Subject: 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 --- memcached.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'memcached.h') 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 }; -- cgit v1.2.1