diff options
author | dormando <dormando@rydia.net> | 2017-12-15 14:49:26 -0800 |
---|---|---|
committer | dormando <dormando@rydia.net> | 2017-12-15 14:49:26 -0800 |
commit | a78d168f6d82c8b6e073dc8c89b80e988eafe657 (patch) | |
tree | a9d39f0528c298ce51eaa33ae6bf8ca5bd158a1d /storage.c | |
parent | c65a2fbb13bec94313ddf308468b59d8be5db5b0 (diff) | |
download | memcached-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.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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)); |