summaryrefslogtreecommitdiff
path: root/items.h
diff options
context:
space:
mode:
authordormando <dormando@rydia.net>2017-09-26 14:43:17 -0700
committerdormando <dormando@rydia.net>2017-11-28 14:18:05 -0800
commitf593a59bce69f917514ef6213cf565c71bddcf8c (patch)
tree4a5dc07433e97b089f46a913b5367aa5d52c059a /items.h
parente6239a905d072e837baa8aa425ca0ccee2fc3e01 (diff)
downloadmemcached-f593a59bce69f917514ef6213cf565c71bddcf8c.tar.gz
external storage base commit
been squashing reorganizing, and pulling code off to go upstream ahead of merging the whole branch.
Diffstat (limited to 'items.h')
-rw-r--r--items.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/items.h b/items.h
index e4c6ecd..bf126d7 100644
--- a/items.h
+++ b/items.h
@@ -80,3 +80,16 @@ void lru_maintainer_pause(void);
void lru_maintainer_resume(void);
void *lru_bump_buf_create(void);
+
+#ifdef EXTSTORE
+#define STORAGE_delete(e, it) \
+ do { \
+ if (it->it_flags & ITEM_HDR) { \
+ item_hdr *hdr = (item_hdr *)ITEM_data(it); \
+ extstore_delete(e, hdr->page_id, hdr->page_version, \
+ 1, ITEM_ntotal(it)); \
+ } \
+ } while (0)
+#else
+#define STORAGE_delete(...)
+#endif