summaryrefslogtreecommitdiff
path: root/items.c
diff options
context:
space:
mode:
Diffstat (limited to 'items.c')
-rw-r--r--items.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/items.c b/items.c
index f02ccb9..889c328 100644
--- a/items.c
+++ b/items.c
@@ -1553,13 +1553,15 @@ static void *lru_maintainer_thread(void *arg) {
int did_moves = lru_maintainer_juggle(i);
#ifdef EXTSTORE
// Deeper loop to speed up pushing to storage.
- for (x = 0; x < 500; x++) {
- int found;
- found = lru_maintainer_store(storage, i);
- if (found) {
- did_moves += found;
- } else {
- break;
+ if (storage) {
+ for (x = 0; x < 500; x++) {
+ int found;
+ found = lru_maintainer_store(storage, i);
+ if (found) {
+ did_moves += found;
+ } else {
+ break;
+ }
}
}
#endif