pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel/memcached Changes 1.4.34:
details: https://anonhg.NetBSD.org/pkgsrc/rev/d23d814cc427
branches: trunk
changeset: 358601:d23d814cc427
user: adam <adam%pkgsrc.org@localhost>
date: Thu Feb 16 11:10:53 2017 +0000
description:
Changes 1.4.34:
Add -o modern switches to -h
metadump: Fix preventing dumping of class 63
Fix cache_memlimit bug for > 4G values
metadump: ensure buffer is flushed to client before finishing
Number of small fixes/additions to new logging
add logging endpoint for LRU crawler
evicted_active counter for LRU maintainer
stop pushing NULL byte into watcher stream
Scale item hash locks more with more worker threads (minor performance)
Further increase systemd service hardening
Missing necessary header for atomic_inc_64_nv() used in logger.c (solaris)
Fix print format for idle timeout thread
Improve binary sasl security fixes
Fix clang compile error
Widen systemd caps to allow maxconns to increase
Add -X option to disable cachedump/metadump
Don't double free in lru_crawler on closed clients
Fix segfault if metadump client goes away
diffstat:
devel/memcached/Makefile | 5 +--
devel/memcached/distinfo | 15 ++++++-------
devel/memcached/patches/patch-Makefile.am | 15 -------------
devel/memcached/patches/patch-aa | 34 ------------------------------
devel/memcached/patches/patch-ab | 15 -------------
devel/memcached/patches/patch-items.c | 35 +++++++++++++++++++++++++++++++
devel/memcached/patches/patch-logger.h | 15 +++++++++++++
7 files changed, 59 insertions(+), 75 deletions(-)
diffs (170 lines):
diff -r 1da0d46c3428 -r d23d814cc427 devel/memcached/Makefile
--- a/devel/memcached/Makefile Thu Feb 16 11:10:34 2017 +0000
+++ b/devel/memcached/Makefile Thu Feb 16 11:10:53 2017 +0000
@@ -1,7 +1,6 @@
-# $NetBSD: Makefile,v 1.52 2016/07/09 06:38:10 wiz Exp $
+# $NetBSD: Makefile,v 1.53 2017/02/16 11:10:53 adam Exp $
-DISTNAME= memcached-1.4.25
-PKGREVISION= 2
+DISTNAME= memcached-1.4.34
CATEGORIES= devel
MASTER_SITES= http://www.memcached.org/files/
diff -r 1da0d46c3428 -r d23d814cc427 devel/memcached/distinfo
--- a/devel/memcached/distinfo Thu Feb 16 11:10:34 2017 +0000
+++ b/devel/memcached/distinfo Thu Feb 16 11:10:53 2017 +0000
@@ -1,12 +1,11 @@
-$NetBSD: distinfo,v 1.26 2015/12/08 17:41:56 adam Exp $
+$NetBSD: distinfo,v 1.27 2017/02/16 11:10:53 adam Exp $
-SHA1 (memcached-1.4.25.tar.gz) = 7fd0ba9283c61204f196638ecf2e9295688b2314
-RMD160 (memcached-1.4.25.tar.gz) = 409abd843ec01d06f0e5cc64aeaa46ec2668699f
-SHA512 (memcached-1.4.25.tar.gz) = e037c3bbb68c4077f814f855663501af418ce3b1f8bc20f8e7eba3249aea378e55b3291457952fa4511779ec3702496fdaab5799edae7d59bc64eb6fd54ee14e
-Size (memcached-1.4.25.tar.gz) = 359709 bytes
-SHA1 (patch-Makefile.am) = 184b10f693f7aa85e3a5922790d1d2c1451c0329
+SHA1 (memcached-1.4.34.tar.gz) = 7c7214f5183c6e20c22b243e21ed1ffddb91497e
+RMD160 (memcached-1.4.34.tar.gz) = ce93048d80bdd6b8b5aa7dcc67dc24186f8e501c
+SHA512 (memcached-1.4.34.tar.gz) = e91aa784674501313cd7464bad22f1898b998c836492a52efe68d097a01249a4fffd3b23b79af86957dd3dc11794f2bff476a4891b9cfa172ff9c29dfb50789f
+Size (memcached-1.4.34.tar.gz) = 391131 bytes
SHA1 (patch-Makefile.in) = 4c21920e41bdad77dc8ff39c62001aea0d73c78a
-SHA1 (patch-aa) = c26799e8963177e7ed173c080048dd829c03170e
-SHA1 (patch-ab) = 76af28c72db1e2b15da61f04e64464d3b42c5c10
SHA1 (patch-configure) = d44e07c0c38029df4f10bb5411049595b5a8ffbb
+SHA1 (patch-items.c) = ddc0fe0dd390de5e20dbcbc73085000c629259c0
+SHA1 (patch-logger.h) = 130c573e07b7d9b6caff1c98e40b36a96cb3c064
SHA1 (patch-memcached.c) = 3c39c873332704c8d269de4a3c7049281bf101c6
diff -r 1da0d46c3428 -r d23d814cc427 devel/memcached/patches/patch-Makefile.am
--- a/devel/memcached/patches/patch-Makefile.am Thu Feb 16 11:10:34 2017 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,15 +0,0 @@
-$NetBSD: patch-Makefile.am,v 1.2 2015/05/21 14:07:10 rodent Exp $
-
-List test prerequisite.
-
---- Makefile.am.orig 2015-01-01 06:49:53.000000000 +0000
-+++ Makefile.am
-@@ -75,7 +75,7 @@ EXTRA_DIST = doc scripts t memcached.spe
-
- MOSTLYCLEANFILES = *.gcov *.gcno *.gcda *.tcov
-
--test: memcached-debug sizes testapp
-+test: memcached-debug sizes testapp timedrun
- $(srcdir)/sizes
- $(srcdir)/testapp
- prove $(srcdir)/t
diff -r 1da0d46c3428 -r d23d814cc427 devel/memcached/patches/patch-aa
--- a/devel/memcached/patches/patch-aa Thu Feb 16 11:10:34 2017 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,34 +0,0 @@
-$NetBSD: patch-aa,v 1.9 2015/12/08 17:41:56 adam Exp $
-
-time_t changes
-
---- items.c.orig 2015-11-20 01:18:56.000000000 +0000
-+++ items.c
-@@ -460,9 +460,9 @@ char *item_cachedump(const unsigned int
- /* Copy the key since it may not be null-terminated in the struct */
- strncpy(key_temp, ITEM_key(it), it->nkey);
- key_temp[it->nkey] = 0x00; /* terminate */
-- len = snprintf(temp, sizeof(temp), "ITEM %s [%d b; %lu s]\r\n",
-+ len = snprintf(temp, sizeof(temp), "ITEM %s [%d b; %jd s]\r\n",
- key_temp, it->nbytes - 2,
-- (unsigned long)it->exptime + process_started);
-+ (intmax_t)it->exptime + process_started);
- if (bufcurr + len + 6 > memlimit) /* 6 is END\r\n\0 */
- break;
- memcpy(buffer + bufcurr, temp, len);
-@@ -576,13 +576,13 @@ void item_stats(ADD_STAT add_stats, void
- if (settings.expirezero_does_not_evict)
- APPEND_NUM_FMT_STAT(fmt, n, "number_noexp", "%u", lru_size_map[3]);
- }
-- APPEND_NUM_FMT_STAT(fmt, n, "age", "%u", age);
-+ APPEND_NUM_FMT_STAT(fmt, n, "age", "%jd", age);
- APPEND_NUM_FMT_STAT(fmt, n, "evicted",
- "%llu", (unsigned long long)totals.evicted);
- APPEND_NUM_FMT_STAT(fmt, n, "evicted_nonzero",
- "%llu", (unsigned long long)totals.evicted_nonzero);
- APPEND_NUM_FMT_STAT(fmt, n, "evicted_time",
-- "%u", totals.evicted_time);
-+ "%jd", totals.evicted_time);
- APPEND_NUM_FMT_STAT(fmt, n, "outofmemory",
- "%llu", (unsigned long long)totals.outofmemory);
- APPEND_NUM_FMT_STAT(fmt, n, "tailrepairs",
diff -r 1da0d46c3428 -r d23d814cc427 devel/memcached/patches/patch-ab
--- a/devel/memcached/patches/patch-ab Thu Feb 16 11:10:34 2017 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,15 +0,0 @@
-$NetBSD: patch-ab,v 1.9 2015/05/21 14:07:10 rodent Exp $
-
-time_t changes
-
---- memcached.h.orig 2015-01-01 07:50:52.000000000 +0000
-+++ memcached.h
-@@ -213,7 +213,7 @@ enum delta_result_type {
- };
-
- /** Time relative to server start. Smaller than time_t on 64-bit systems. */
--typedef unsigned int rel_time_t;
-+typedef intmax_t rel_time_t;
-
- /** Stats stored per slab (and per thread). */
- struct slab_stats {
diff -r 1da0d46c3428 -r d23d814cc427 devel/memcached/patches/patch-items.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/memcached/patches/patch-items.c Thu Feb 16 11:10:53 2017 +0000
@@ -0,0 +1,35 @@
+$NetBSD: patch-items.c,v 1.1 2017/02/16 11:10:53 adam Exp $
+
+time_t changes
+
+--- items.c.orig 2017-01-08 01:10:24.000000000 +0000
++++ items.c
+@@ -489,10 +489,10 @@ char *item_cachedump(const unsigned int
+ /* Copy the key since it may not be null-terminated in the struct */
+ strncpy(key_temp, ITEM_key(it), it->nkey);
+ key_temp[it->nkey] = 0x00; /* terminate */
+- len = snprintf(temp, sizeof(temp), "ITEM %s [%d b; %llu s]\r\n",
++ len = snprintf(temp, sizeof(temp), "ITEM %s [%d b; %jd s]\r\n",
+ key_temp, it->nbytes - 2,
+ it->exptime == 0 ? 0 :
+- (unsigned long long)it->exptime + process_started);
++ (intmax_t)it->exptime + process_started);
+ if (bufcurr + len + 6 > memlimit) /* 6 is END\r\n\0 */
+ break;
+ memcpy(buffer + bufcurr, temp, len);
+@@ -615,13 +615,13 @@ void item_stats(ADD_STAT add_stats, void
+ APPEND_NUM_FMT_STAT(fmt, n, "number_noexp", "%u", lru_size_map[3]);
+ }
+ }
+- APPEND_NUM_FMT_STAT(fmt, n, "age", "%u", age);
++ APPEND_NUM_FMT_STAT(fmt, n, "age", "%jd", age);
+ APPEND_NUM_FMT_STAT(fmt, n, "evicted",
+ "%llu", (unsigned long long)totals.evicted);
+ APPEND_NUM_FMT_STAT(fmt, n, "evicted_nonzero",
+ "%llu", (unsigned long long)totals.evicted_nonzero);
+ APPEND_NUM_FMT_STAT(fmt, n, "evicted_time",
+- "%u", totals.evicted_time);
++ "%jd", totals.evicted_time);
+ APPEND_NUM_FMT_STAT(fmt, n, "outofmemory",
+ "%llu", (unsigned long long)totals.outofmemory);
+ APPEND_NUM_FMT_STAT(fmt, n, "tailrepairs",
diff -r 1da0d46c3428 -r d23d814cc427 devel/memcached/patches/patch-logger.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/memcached/patches/patch-logger.h Thu Feb 16 11:10:53 2017 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-logger.h,v 1.1 2017/02/16 11:10:53 adam Exp $
+
+time_t changes
+
+--- logger.h.orig 2017-02-16 11:07:55.000000000 +0000
++++ logger.h
+@@ -11,7 +11,7 @@
+ #define GET_LOGGER() ((logger *) pthread_getspecific(logger_key));
+
+ /* Inlined from memcached.h - should go into sub header */
+-typedef unsigned int rel_time_t;
++typedef intmax_t rel_time_t;
+
+ enum log_entry_type {
+ LOGGER_ASCII_CMD = 0,
Home |
Main Index |
Thread Index |
Old Index