summaryrefslogtreecommitdiff
path: root/crawler.c
diff options
context:
space:
mode:
authordormando <dormando@rydia.net>2020-08-29 23:15:23 -0700
committerdormando <dormando@rydia.net>2020-10-30 15:50:12 -0700
commit416a7a10014299fd08bf4b35e4ffa0870cd330b0 (patch)
tree6c767d9538b00bae8a393e609a73790e015d6610 /crawler.c
parentdf49d38930a32d342e1a3ab980c1ec432d138c2c (diff)
downloadmemcached-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.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/crawler.c b/crawler.c
index ba0daa5..a546c39 100644
--- a/crawler.c
+++ b/crawler.c
@@ -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)