summaryrefslogtreecommitdiff
path: root/storage.c
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 /storage.c
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 'storage.c')
-rw-r--r--storage.c1
1 files changed, 1 insertions, 0 deletions
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));