diff options
Diffstat (limited to 'extra/memcached/0002-flag-crawler-as-running-during-the-request-to-run.patch')
-rw-r--r-- | extra/memcached/0002-flag-crawler-as-running-during-the-request-to-run.patch | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/extra/memcached/0002-flag-crawler-as-running-during-the-request-to-run.patch b/extra/memcached/0002-flag-crawler-as-running-during-the-request-to-run.patch deleted file mode 100644 index f6767362f..000000000 --- a/extra/memcached/0002-flag-crawler-as-running-during-the-request-to-run.patch +++ /dev/null @@ -1,38 +0,0 @@ -From d8b1047620a54443f6bdca7f0dc5ee3b4d99378e Mon Sep 17 00:00:00 2001 -From: dormando <dormando@rydia.net> -Date: Sat, 19 Apr 2014 16:03:28 -0700 -Subject: [PATCH 2/2] flag crawler as running during the request to run - -... so there's no race to tell if it's running if you check after the command -exits. ---- - items.c | 6 +++--- - 1 file changed, 3 insertions(+), 3 deletions(-) - -diff --git a/items.c b/items.c -index 3e2f71f..6261503 100644 ---- a/items.c -+++ b/items.c -@@ -769,9 +769,6 @@ static void *item_crawler_thread(void *arg) { - fprintf(stderr, "Starting LRU crawler background thread\n"); - while (do_run_lru_crawler_thread) { - pthread_cond_wait(&lru_crawler_cond, &lru_crawler_lock); -- STATS_LOCK(); -- stats.lru_crawler_running = true; -- STATS_UNLOCK(); - - while (crawler_count) { - item *search = NULL; -@@ -918,6 +915,9 @@ enum crawler_result_type lru_crawler_crawl(char *slabs) { - } - pthread_mutex_unlock(&cache_lock); - pthread_cond_signal(&lru_crawler_cond); -+ STATS_LOCK(); -+ stats.lru_crawler_running = true; -+ STATS_UNLOCK(); - pthread_mutex_unlock(&lru_crawler_lock); - return CRAWLER_OK; - } --- -1.9.2 - |