From a78d168f6d82c8b6e073dc8c89b80e988eafe657 Mon Sep 17 00:00:00 2001 From: dormando Date: Fri, 15 Dec 2017 14:49:26 -0800 Subject: 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. --- storage.c | 1 + 1 file changed, 1 insertion(+) (limited to 'storage.c') diff --git a/storage.c b/storage.c index fbeb121..2f378bf 100644 --- a/storage.c +++ b/storage.c @@ -113,6 +113,7 @@ int lru_maintainer_store(void *storage, const int clsid) { ITEM_set_cas(hdr_it, ITEM_get_cas(it)); do_item_remove(hdr_it); did_moves = 1; + LOGGER_LOG(NULL, LOG_EVICTIONS, LOGGER_EXTSTORE_WRITE, it, bucket); } else { /* Failed to write for some reason, can't continue. */ slabs_free(hdr_it, ITEM_ntotal(hdr_it), ITEM_clsid(hdr_it)); -- cgit v1.2.1