diff options
author | dormando <dormando@rydia.net> | 2020-08-29 23:15:23 -0700 |
---|---|---|
committer | dormando <dormando@rydia.net> | 2020-10-30 15:50:12 -0700 |
commit | 416a7a10014299fd08bf4b35e4ffa0870cd330b0 (patch) | |
tree | 6c767d9538b00bae8a393e609a73790e015d6610 /crawler.c | |
parent | df49d38930a32d342e1a3ab980c1ec432d138c2c (diff) | |
download | memcached-416a7a10014299fd08bf4b35e4ffa0870cd330b0.tar.gz |
core: move more storage functions to storage.c
extstore.h is now only used from storage.c. starting a path towards
getting the storage interface to be more generalized.
should be no functional changes.
Diffstat (limited to 'crawler.c')
-rw-r--r-- | crawler.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -6,6 +6,7 @@ /* -*- Mode: C; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */ #include "memcached.h" +#include "storage.h" #include <sys/stat.h> #include <sys/socket.h> #include <sys/resource.h> @@ -186,9 +187,7 @@ static void crawler_expired_eval(crawler_module_t *cm, item *search, uint32_t hv #ifdef EXTSTORE bool is_valid = true; if (search->it_flags & ITEM_HDR) { - item_hdr *hdr = (item_hdr *)ITEM_data(search); - if (extstore_check(storage, hdr->page_id, hdr->page_version) != 0) - is_valid = false; + is_valid = storage_validate_item(storage, search); } #endif if ((search->exptime != 0 && search->exptime < current_time) |