From 46a297cb0b6bad956793c25cc04ee208fc75a843 Mon Sep 17 00:00:00 2001 From: dormando Date: Thu, 16 Nov 2017 18:51:44 -0800 Subject: extstore: crawler fix and ext_low_ttl option LRU crawler was not marking reclaimed expired items as removed from the storage engine. This could cause fragmentation to persist much longer than it should, but would not cause any problems once compaction started. Adds "ext_low_ttl" option. Items with a remaining expiration age below this value are grouped into special pages. If you have a mixed TTL workload this would help prevent low TTL items from causing excess fragmentation/compaction. Pages with low ttl items are excluded from compaction. --- extstore.h | 1 + 1 file changed, 1 insertion(+) (limited to 'extstore.h') diff --git a/extstore.h b/extstore.h index 6a6b2bd..84157a0 100644 --- a/extstore.h +++ b/extstore.h @@ -7,6 +7,7 @@ struct extstore_page_data { uint64_t version; uint64_t bytes_used; + unsigned int bucket; }; /* Pages can have objects deleted from them at any time. This creates holes -- cgit v1.2.1