summaryrefslogtreecommitdiff
path: root/logger.h
diff options
context:
space:
mode:
authordormando <dormando@rydia.net>2017-12-15 14:49:26 -0800
committerdormando <dormando@rydia.net>2017-12-15 14:49:26 -0800
commita78d168f6d82c8b6e073dc8c89b80e988eafe657 (patch)
treea9d39f0528c298ce51eaa33ae6bf8ca5bd158a1d /logger.h
parentc65a2fbb13bec94313ddf308468b59d8be5db5b0 (diff)
downloadmemcached-a78d168f6d82c8b6e073dc8c89b80e988eafe657.tar.gz
extstore: add evictions-related write logs
"watch evictions" will show a stream of evictions + writes to extstore. useful for analyzing the remaining ttl or key pattern of stuff being flushed.
Diffstat (limited to 'logger.h')
-rw-r--r--logger.h18
1 files changed, 16 insertions, 2 deletions
diff --git a/logger.h b/logger.h
index f528327..3d4c44c 100644
--- a/logger.h
+++ b/logger.h
@@ -21,6 +21,7 @@ enum log_entry_type {
LOGGER_CRAWLER_STATUS,
LOGGER_SLAB_MOVE,
#ifdef EXTSTORE
+ LOGGER_EXTSTORE_WRITE,
LOGGER_COMPACT_START,
LOGGER_COMPACT_ABORT,
LOGGER_COMPACT_READ_START,
@@ -34,7 +35,10 @@ enum log_entry_subtype {
LOGGER_TEXT_ENTRY = 0,
LOGGER_EVICTION_ENTRY,
LOGGER_ITEM_GET_ENTRY,
- LOGGER_ITEM_STORE_ENTRY
+ LOGGER_ITEM_STORE_ENTRY,
+#ifdef EXTSTORE
+ LOGGER_EXT_WRITE_ENTRY,
+#endif
};
enum logger_ret_type {
@@ -65,7 +69,17 @@ struct logentry_eviction {
uint8_t clsid;
char key[];
};
-
+#ifdef EXTSTORE
+struct logentry_ext_write {
+ long long int exptime;
+ uint32_t latime;
+ uint16_t it_flags;
+ uint8_t nkey;
+ uint8_t clsid;
+ uint8_t bucket;
+ char key[];
+};
+#endif
struct logentry_item_get {
uint8_t was_found;
uint8_t nkey;