diff options
author | dormando <dormando@rydia.net> | 2017-10-18 00:42:58 -0700 |
---|---|---|
committer | dormando <dormando@rydia.net> | 2017-11-28 14:18:05 -0800 |
commit | cd2ce96754ef10926057dd76a203325c35384074 (patch) | |
tree | e2ff6c331a61887a43693a464b33601c56418e22 /items.c | |
parent | 603c1bb32304b107b468dae00ef083de1189762f (diff) | |
download | memcached-cd2ce96754ef10926057dd76a203325c35384074.tar.gz |
extstore: configure and start time gating
./configure --enable-extstore to compile the feature in
specify -o ext_path=/whatever to start.
Diffstat (limited to 'items.c')
-rw-r--r-- | items.c | 16 |
1 files changed, 9 insertions, 7 deletions
@@ -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 |