summaryrefslogtreecommitdiff
path: root/extra/memcached
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@endefensadelsl.org>2014-05-07 04:04:41 +0000
committerNicolás Reynolds <fauno@endefensadelsl.org>2014-05-07 04:04:41 +0000
commit2d7e9da010b34660baba072183cce7664dc8956c (patch)
tree0a9bd47a90edc63829ae06bb549c58cc4548847d /extra/memcached
parent58ee2a8b8164437294a44a627d05ee1c701ced57 (diff)
Wed May 7 04:00:53 UTC 2014
Diffstat (limited to 'extra/memcached')
-rw-r--r--extra/memcached/0001-don-t-drop-to-a-condition-without-holding-the-lock.patch35
-rw-r--r--extra/memcached/0002-flag-crawler-as-running-during-the-request-to-run.patch38
-rw-r--r--extra/memcached/PKGBUILD16
3 files changed, 5 insertions, 84 deletions
diff --git a/extra/memcached/0001-don-t-drop-to-a-condition-without-holding-the-lock.patch b/extra/memcached/0001-don-t-drop-to-a-condition-without-holding-the-lock.patch
deleted file mode 100644
index 6cae41238..000000000
--- a/extra/memcached/0001-don-t-drop-to-a-condition-without-holding-the-lock.patch
+++ /dev/null
@@ -1,35 +0,0 @@
-From 9d635fa7f46f000d23663e0be3a900d2c51a3ed8 Mon Sep 17 00:00:00 2001
-From: dormando <dormando@rydia.net>
-Date: Sat, 19 Apr 2014 12:15:29 -0700
-Subject: [PATCH 1/2] don't drop to a condition without holding the lock
-
-I am a moran. How do you even thread.
----
- items.c | 3 ++-
- 1 file changed, 2 insertions(+), 1 deletion(-)
-
-diff --git a/items.c b/items.c
-index 688ad03..3e2f71f 100644
---- a/items.c
-+++ b/items.c
-@@ -764,6 +764,7 @@ static void item_crawler_evaluate(item *search, uint32_t hv, int i) {
- static void *item_crawler_thread(void *arg) {
- int i;
-
-+ pthread_mutex_lock(&lru_crawler_lock);
- if (settings.verbose > 2)
- fprintf(stderr, "Starting LRU crawler background thread\n");
- while (do_run_lru_crawler_thread) {
-@@ -827,8 +828,8 @@ static void *item_crawler_thread(void *arg) {
- STATS_LOCK();
- stats.lru_crawler_running = false;
- STATS_UNLOCK();
-- pthread_mutex_unlock(&lru_crawler_lock);
- }
-+ pthread_mutex_unlock(&lru_crawler_lock);
- if (settings.verbose > 2)
- fprintf(stderr, "LRU crawler thread stopping\n");
-
---
-1.9.2
-
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
-
diff --git a/extra/memcached/PKGBUILD b/extra/memcached/PKGBUILD
index 063ce095c..4286dc01e 100644
--- a/extra/memcached/PKGBUILD
+++ b/extra/memcached/PKGBUILD
@@ -1,9 +1,9 @@
-# $Id: PKGBUILD 211562 2014-04-20 01:24:48Z dan $
+# $Id: PKGBUILD 212084 2014-05-06 15:28:08Z dan $
# Maintainer: Dan McGee <dan@archlinux.org>
# Contributor: Michael Irwin <6d6469@gmail.com>
pkgname=memcached
-pkgver=1.4.18
+pkgver=1.4.19
pkgrel=1
pkgdesc="A distributed memory object caching system"
arch=(i686 x86_64)
@@ -13,18 +13,12 @@ depends=('libevent')
optdepends=('perl: for memcached-tool usage')
install=memcached.install
source=(http://www.memcached.org/files/$pkgname-$pkgver.tar.gz
- memcached.service
- 0001-don-t-drop-to-a-condition-without-holding-the-lock.patch
- 0002-flag-crawler-as-running-during-the-request-to-run.patch)
-sha256sums=('6a5cc8d0874f13c5043d741af83fbdc4c681316d32b8313c0dbc82ca96f97439'
- 'e768a48192aefa2e2f443c86b3c085043005ffc313da40f3074c060a18c8359d'
- 'dc25b5128e4b5f21d2a2d6186517139281e2e3bfc6142eaa72ef5840dbfc1236'
- '07f959563571125248914392fb2a1e3f75a8692f5724c7ed98f0f16737801527')
+ memcached.service)
+sha256sums=('5e18eac2e5b557d7a98b5e866b01ff5fd0f7ceac7356f7b9fffbf8ddbea4a58d'
+ 'e768a48192aefa2e2f443c86b3c085043005ffc313da40f3074c060a18c8359d')
build() {
cd "$srcdir/$pkgname-$pkgver"
- patch -Np1 < ../0001-don-t-drop-to-a-condition-without-holding-the-lock.patch
- patch -Np1 < ../0002-flag-crawler-as-running-during-the-request-to-run.patch
./configure --prefix=/usr
make
}