Run LRU during fellow_cache_test

parent d52dff20
...@@ -2951,8 +2951,6 @@ fellow_cache_async_thread(void *priv) ...@@ -2951,8 +2951,6 @@ fellow_cache_async_thread(void *priv)
return (NULL); return (NULL);
} }
// XXX better way
#ifndef TEST_DRIVER
static inline void static inline void
fellow_cache_seg_evict_locked( fellow_cache_seg_evict_locked(
struct fellow_cache_seg *fcs, struct buddy_ptr_extent *alloc) struct fellow_cache_seg *fcs, struct buddy_ptr_extent *alloc)
...@@ -3328,7 +3326,6 @@ fellow_cache_lru_thread(struct worker *wrk, void *priv) ...@@ -3328,7 +3326,6 @@ fellow_cache_lru_thread(struct worker *wrk, void *priv)
free(r); free(r);
return (NULL); return (NULL);
} }
#endif // TEST_DRIVER
/* returns if moved */ /* returns if moved */
int int
...@@ -5080,21 +5077,20 @@ fellow_cache_fini(struct fellow_cache **fcp) ...@@ -5080,21 +5077,20 @@ fellow_cache_fini(struct fellow_cache **fcp)
#include "vsha256.h" #include "vsha256.h"
#include "fellow_testenv.h" #include "fellow_testenv.h"
void
stvfe_sumstat(struct worker *wrk)
{
(void) wrk;
}
int int
stvfe_mutate(struct worker *wrk, struct fellow_cache_lru *lru, stvfe_mutate(struct worker *wrk, struct fellow_cache_lru *lru,
struct objcore *oc) struct objcore *oc)
{ {
WRONG("no lru during test"); WRONG("fellow_cache_test objects to not have an objcore");
return (1); return (0);
} }
static void *
fellow_cache_lru_thread(struct worker *wrk, void *priv)
{
(void) wrk;
(void) priv;
return (NULL);
}
#ifdef DEBUG #ifdef DEBUG
const char * const filename = "/tmp/fellowfile.cachetest"; const char * const filename = "/tmp/fellowfile.cachetest";
#else #else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment