head 1.6; access; symbols pkgsrc-2018Q3:1.5.0.12 pkgsrc-2018Q3-base:1.5 pkgsrc-2018Q2:1.5.0.10 pkgsrc-2018Q2-base:1.5 pkgsrc-2018Q1:1.5.0.8 pkgsrc-2018Q1-base:1.5 pkgsrc-2017Q4:1.5.0.6 pkgsrc-2017Q4-base:1.5 pkgsrc-2017Q3:1.5.0.4 pkgsrc-2017Q3-base:1.5 pkgsrc-2017Q2:1.4.0.6 pkgsrc-2017Q2-base:1.4 pkgsrc-2017Q1:1.4.0.4 pkgsrc-2017Q1-base:1.4 pkgsrc-2016Q4:1.4.0.2 pkgsrc-2016Q4-base:1.4 pkgsrc-2016Q3:1.3.0.12 pkgsrc-2016Q3-base:1.3 pkgsrc-2016Q2:1.3.0.10 pkgsrc-2016Q2-base:1.3 pkgsrc-2016Q1:1.3.0.8 pkgsrc-2016Q1-base:1.3 pkgsrc-2015Q4:1.3.0.6 pkgsrc-2015Q4-base:1.3 pkgsrc-2015Q3:1.3.0.4 pkgsrc-2015Q3-base:1.3 pkgsrc-2015Q2:1.3.0.2 pkgsrc-2015Q2-base:1.3 pkgsrc-2015Q1:1.2.0.10 pkgsrc-2015Q1-base:1.2 pkgsrc-2014Q4:1.2.0.8 pkgsrc-2014Q4-base:1.2 pkgsrc-2014Q3:1.2.0.6 pkgsrc-2014Q3-base:1.2 pkgsrc-2014Q2:1.2.0.4 pkgsrc-2014Q2-base:1.2 pkgsrc-2014Q1:1.2.0.2 pkgsrc-2014Q1-base:1.2 pkgsrc-2013Q4:1.1.0.6 pkgsrc-2013Q4-base:1.1 pkgsrc-2013Q3:1.1.0.4 pkgsrc-2013Q3-base:1.1 pkgsrc-2013Q2:1.1.0.2 pkgsrc-2013Q2-base:1.1; locks; strict; comment @# @; 1.6 date 2018.12.13.19.34.33; author adam; state dead; branches; next 1.5; commitid UJFlEqn7Gcm6PF3B; 1.5 date 2017.08.02.19.53.37; author fhajny; state Exp; branches; next 1.4; commitid XhtqcXRkecgAWF1A; 1.4 date 2016.11.14.14.30.17; author fhajny; state Exp; branches; next 1.3; commitid PyEYc3TReTNRx6uz; 1.3 date 2015.04.13.11.33.35; author fhajny; state Exp; branches; next 1.2; commitid fwhJEeQTHC4Seqhy; 1.2 date 2014.01.02.17.26.19; author fhajny; state Exp; branches; next 1.1; commitid sCIyaqny3MzZazjx; 1.1 date 2013.06.13.17.41.34; author mspo; state Exp; branches; next ; commitid Tm9D4oU0942xMtTw; desc @@ 1.6 log @redis: updated to 5.0.3 Redis 5.0.3 =========== Upgrade urgency HIGH: Redis 5 is consolidating, upgrading is a good idea. However there is nothing very critical here, but certain issues resolved could lead to very rare crashes. Welcome to Redis 5.0.3, several interesting bug fixes here: * Redis no longer panics when you send data to a replica-mode connection that is in MONITOR or SYNC mode. * Fixes to certain sorted set edge cases. You are unlikely to ever notice those issues, but now it is more correct. * Certain BSD variants now are better supported: build & register logging on crash. * The networking core now recovers if an IPv6 address is listed in bind but is actually not able to work because there is no such protocol in the system. * redis-cli cluster mode improved in many ways. Especially the fix subcommand work was enhanced to cover other edge cases that were still not covered after the work done for Redis 5. * MEMORY USAGE is now more accurate. * DEBUG DIGEST-VALUE added in case you want to make sure a given set of keys (and not the whole DB) are excatly the same between two instances. * Fix a potential crash in the networking code related to recent changes to the way the reply is consumed. * Reject EXEC containing write commands against an instance that changed role from master to replica during our transaction. * Fix a crash in KEYS and other commands using pattern matching, in an edge case where the pattern contains a zero byte. * Fix eviction during AOF loading due to maxmemory triggered by commands executed in loading state. Redis 5.0.2 =========== Upgrade urgency: CRITICAL if you use streams and consumer groups. HIGH if you use redis-cli with Redis Cluster. LOW otherwise. Welcome to Redis 5.0.2. This release fixes two issues with Streams consumer groups, where items could be returned duplicated by XREADGROUP when accessing the history, and another bug where XREADGROUP can report some history even if the comsumer pending list is empty. Both problems were addressed and unit tests to avoid regressions implemented. Moreover this release fixes some issue with redis-cli when in cluster mode. Finally some FreeBSD and DragonFly build problems are now resolved. The list of the commits is below. Redis 5.0.1 =========== Upgrade urgency: URGENT if you use Redis Streams. MODERATE otherwise. Hi all, this is the first patch level release of Redis 5. It contains both fixes and improvements. Here there is a list of the major ones, however read the commit messages at the end of the changelog if you want to know more about the smaller things. Let's start with the new features: * Sentinel now supports authentication! Check the Sentinel official doc for more info. * Redis-cli cluster "fix" is now able to fix a big number of clusters put in a bad condition. Previously many corner cases were not covered. Now the critical fixes: 1. Fix RESTORE mismatch reply when certain keys already expired. 2. Fix an XCLAIM non trivial issue: sometimes the command returned a wrong entry or desynchronized the protocol. And now the other fixes: 3. Stack trace generation on the Raspberry PI (and 32bit ARM) fixed. 4. Don't evict expired keys when the KEYS command is called, in order to avoid a mass deletion event. However expired keys are not displayed by KEYS as usually. 5. Improvements in the computation of the memory used, when estimating the AOF buffers. 6. XRANGE COUNT of 0 fixed. 7. "key misses" stats accounting fixed. Many cache misses were not counted. 8. When in MULTI state, return OOM while accumulating commands and there is no longer memory available. 9. Fix build on FreeBSD and possibly others. 10. Fix a crash in Redis modules, thread safe context reply accumulation. 11. Fix a race condition when producing the RDB file for full SYNC. 12. Disable protected mode in Sentinel. 13. More commands now have the HELP subcommand. 14. Fixed an issue about adaptive server HZ timer. 15. Fix cluster-replica-no-failover option name. Redis 5.0.0 =========== Upgrade urgency CRITICAL: Several fixes to streams AOF and replication. 1. The new Stream data type. https://redis.io/topics/streams-intro 2. New Redis modules APIs: Timers, Cluster and Dictionary APIs. 3. RDB now store LFU and LRU information. 4. The cluster manager was ported from Ruby (redis-trib.rb) to C code inside redis-cli. Check `redis-cli --cluster help` for more info. 5. New sorted set commands: ZPOPMIN/MAX and blocking variants. 6. Active defragmentation version 2. 7. Improvemenets in HyperLogLog implementations. 8. Better memory reporting capabilities. 9. Many commands with sub-commands now have an HELP subcommand. 10. Better performances when clients connect and disconnect often. 11. Many bug fixes and other random improvements. 12. Jemalloc was upgraded to version 5.1 13. CLIENT UNBLOCK and CLIENT ID. 14. The LOLWUT command was added. http://antirez.com/news/123 15. We no longer use the "slave" word if not for API backward compatibility. 16. Differnet optimizations in the networking layer. 17. Lua improvements: - Better propagation of Lua scripts to replicas / AOF. - Lua scripts can now timeout and get in -BUSY state in the replica as well. 18. Dynamic HZ to balance idle CPU usage with responsiveness. 19. The Redis core was refactored and improved in many ways. @ text @$NetBSD: patch-ab,v 1.5 2017/08/02 19:53:37 fhajny Exp $ Add DESTDIR support. Fix NetBSD support. --- src/Makefile.orig 2017-07-24 13:58:34.000000000 +0000 +++ src/Makefile @@@@ -25,8 +25,8 @@@@ WARN=-Wall -W -Wno-missing-field-initial OPT=$(OPTIMIZATION) PREFIX?=/usr/local -INSTALL_BIN=$(PREFIX)/bin -INSTALL=install +INSTALL_BIN=$(DESTDIR)$(PREFIX)/bin +INSTALL=$(BSD_INSTALL_PROGRAM) # Default allocator defaults to Jemalloc if it's not an ARM MALLOC=libc @@@@ -94,6 +94,10 @@@@ ifeq ($(uname_S),OpenBSD) # OpenBSD FINAL_LIBS+= -lpthread else +ifeq ($(uname_S),NetBSD) + # NetBSD + FINAL_LIBS+= -lpthread +else ifeq ($(uname_S),FreeBSD) # FreeBSD FINAL_LIBS+= -lpthread @@@@ -104,6 +108,7 @@@@ else endif endif endif +endif endif endif # Include paths to dependencies @ 1.5 log @Redis 4.0.1 Bug fixes: - Loading two or more modules exporting native data types resulted into the inability to reload the RDB file. - Crash in modules when calling from Lua scripts module commands that would block. - A Redis Cluster crash due to mis-handling of the "migrate-to" internal flag. - Other smaller fixes not worth of a release per se, but nice to add here. Redis 4.0.0 Major features - Redis modules system. Redis now allows developers to write modules that can extend the Redis functionalities and implement new data types. - Partial Replication (PSYNC) version 2. - Cache eviction improvements. Redis 4.0 implements LFU (Least Frequently Used) as a new eviction algorithm, and improves the functionality, performances and precision of the existing algorithms. - Lazy freeing of keys. Redis is now able to delete keys in the background in a different thread without blocking the server. - Mixed RDB-AOF format. If enabled the new format is used when rewriting the AOF file: the rewrite uses the more compact and faster to generate RDB format, and an AOF stream is appended to the file. - A new MEMORY command, able to perform memory analysis of different kinds: troubleshooting of memory issues (with MEMORY DOCTOR, similar to LATENCY DOCTOR), reporting of the amount of memory used by a single key, more in-depth reporting of Redis memory usage compared to what the INFO command offers. - Redis Cluster support for NAT / Docker. - Redis uses now less memory in order to store the same amount of data. The gain depends a lot on the kind of dataset stored. - Redis is now able to defragment the used memory and reclaim space incrementally while running. Smaller features - Improvements to the RDB format to support 64 bit lengths, binary sorted set scores, and more. - SWAPDB command: ability to completely and immediately (no latency) replace two Redis databases. - Improvements to `dict.c`, the Redis hash table implementation. - Security improvements mapping POST and Host: commands to QUIT in order to prevent cross protocol scripting attacks. - RPUSHX and LPUSHX now accept a variable number of elements. - Reporting of additional memory used by copy on write in the INFO output. - Serious refactoring of many core parts of Redis. Migrating from 3.2 to 4.0 - The Redis Cluster bus protocol of 4.0 is no longer compatible with Redis 3.2. - Redis Cluster CLUSTER NODES output is now slightly different. - Writable slaves do not propagate writes to their sub-slaves, so writes to writable slaves remain just local. - The RDB format changed. Redis 4.0 is still able to read 3.2 (and all the past versions) files, but not the other way around. - Certain log formats and sentences are different in Redis 4.0. - Certain INFO fields, especially related to replication, are now different. - GEODIST, GEOPOS and GEOHASH return values changed for non existing keys - The SLOWLOG command entires contain additional two fields: the client address and name. This is documented in the SLOWLOG command online documentation. @ text @d1 1 a1 1 $NetBSD: patch-ab,v 1.4 2016/11/14 14:30:17 fhajny Exp $ @ 1.4 log @Fix NetBSD support. Thanks to Mustafa Dogan! @ text @d1 1 a1 1 $NetBSD: patch-ab,v 1.3 2015/04/13 11:33:35 fhajny Exp $ d5 1 a5 1 --- src/Makefile.orig 2016-10-26 07:17:45.000000000 +0000 d7 1 a7 1 @@@@ -23,8 +23,8 @@@@ WARN=-Wall -W d16 3 a18 3 # Default allocator ifeq ($(uname_S),Linux) @@@@ -77,6 +77,10 @@@@ ifeq ($(uname_S),OpenBSD) d29 1 a29 1 @@@@ -87,6 +91,7 @@@@ else @ 1.3 log @Update redis to 3.0.0. --[ Redis 3.0.0 ] Release date: 1 Apr 2015 >> What's new in Redis 3.0 compared to Redis 2.8? * Redis Cluster: a distributed implementation of a subset of Redis. * New "embedded string" object encoding resulting in less cache misses. Big speed gain under certain work loads. * AOF child -> parent final data transmission to minimize latency due to "last write" during AOF rewrites. * Much improved LRU approximation algorithm for keys eviction. * WAIT command to block waiting for a write to be transmitted to the specified number of slaves. * MIGRATE connection caching. Much faster keys migraitons. * MIGARTE new options COPY and REPLACE. * CLIENT PAUSE command: stop processing client requests for a specified amount of time. * BITCOUNT performance improvements. * CONFIG SET accepts memory values in different units (for example you can use "CONFIG SET maxmemory 1gb"). * Redis log format slightly changed reporting in each line the role of the instance (master/slave) or if it's a saving child log. * INCR performance improvements. >> Refactoring changes (no new features nor bug fixes) * Blocking operations full refactoring (blocked.c) * Client output buffer memory tracking refactored. See full release notes for 3.0.0: https://raw.githubusercontent.com/antirez/redis/3.0/00-RELEASENOTES @ text @d1 1 a1 1 $NetBSD: patch-ab,v 1.2 2014/01/02 17:26:19 fhajny Exp $ d3 3 a5 2 Add DESTDIR support. --- src/Makefile.orig 2015-04-01 14:01:44.000000000 +0000 d18 19 @ 1.2 log @Update redis to 2.8.? Changes: 2.8.3 * [FIX] Sentinel instance role sampling fixed, the system is now more reliable during failover and when reconfiguring instances with non matching configuration. * [FIX] Inline requests are now handled even when terminated with just LF. * [FIX] Replication timeout handling greatly improved, now the slave is able to ping the master while removing the old data from memory, and while loading the new RDB file. This avoid false timeouts sensed by masters. * [FIX] Fixed a replication bug involving 32 bit instances and big datasets hard to compress that resulted into more than 2GB of RDB file sent. * [FIX] Return error for inline requests with unbalanced quotes. * [FIX] Publish the slave replication offset even when disconnected from the master if there is still a cached master instance. 2.8.2 * [FIX] Sentinel better desynchronization to avoid split-brain elections where no Sentinel managed to get elected. * [FIX] Stop accepting writes on "MISCONF" error only if master, not slave. * [FIX] Reply to PING with an error on "MISCONF" errors. 2.8.1 * [FIX] Fixed a bug in "new Sentinel" config propagation. * [FIX] Fixed a false positive in Redis tests. 2.8.0 * [FIX] Fixed an error in rdbWriteRaw() that should have no practical impact. * [NEW] Log the new master when SLAVEOF command is used. * [NEW] Sentinel code synchronized with the unstable branch, the new Sentinel is a reimplementation that uses more reliable algorithms. 2.8.0 RC6 * [NEW] SCAN, SSCAN, HSCAN, ZSCAN commands. 2.8.0 RC5 * [FIX] redis-cli: don't crash with --bigkeys when the key no longer exist. * [FIX] Allow AUTH / PING when disconnected from slave and serve-stale-data is no. * [FIX] PSYNC: safer handling of PSYNC requests with offsets in the future. * [FIX] Replication: Fix master timeout detection. * [FIX] Replication: Correctly install the write handler after successful PSYNC. 2.8.0 RC4 * [FIX] Fixed a serious EVAL memory leak in the Lua stack. * [FIX] Fixed server startup when no IPv6 address exists in any interface. * [FIX] Send MISCONFIG error when BGSAVE fails because can't fork. * [FIX] Memory efficiency with large (> a few kbytes) values improved considerably. * [NEW] DEBUG SDSLEN for sds memory debugging. 2.8.0 RC3 * [FIX] Improved expired keys collection algorithm. Even under heavy load keys to be expired can't accumulate because of lack of CPU time. * [FIX] Replication speed regression fixed (issue #1238). * [FIX] Fixed an hard to trigger PSYNC bug. * [FIX] Fixed Issue #1240, ZUNIONSTORE could lead to wrong result. * [NEW] Add per-db average TTL information in INFO output. * [NEW] redis-benchmark improvements. * [NEW] dict.c API wrong usage detection. 2.8.0 RC2 * [FIX] Fixed a critical replication bug, see issue #1221. * [NEW] The new inline protocol now accepts quoted strings like, for example you can now type in a telnet session: set 'foo bar' "hello world\n". 2.8.0 RC1 * [NEW] Slaves are now able to partially resynchronize with the master, so most of the times a full resynchronization with the RDB creation in the master side is not needed when the master-slave link is disconnected for a short amount of time. * [NEW] Experimental IPv6 support. * [NEW] Slaves explicitly ping masters now, a master is able to detect a timed out slave independently. * [NEW] Masters can stop accepting writes if not enough slaves with a given maximum latency are connected. * [NEW] Keyspace changes notifications via Pub/Sub. * [NEW] CONFIG SET maxclients is now available. * [NEW] Ability to bind multiple IP addresses. * [NEW] Set process names so that you can recognize, in the "ps" command output, the listening port of an instance, or if it is a saving child. * [NEW] Automatic memory check on crash. * [NEW] CONFIG REWRITE is able to materialize the changes in the configuration operated using CONFIG SET into the redis.conf file. * [NEW] More NetBSD friendly code base. * [NEW] PUBSUB command for Pub/Sub introspection capabilities. * [NEW] EVALSHA can now be replicated as such, without requiring to be expanded to a full EVAL for the replication link. * [NEW] Better Lua scripts error reporting. * [NEW] SDIFF performance improved. * [FIX] A number of bugfixes. 2.6.17 * [FIX] redis-cli: fix big keys search when the key no longer exist. * [FIX] Allow AUTH / PING when disconnected from slave with serve-stale-data on. * [FIX] redis-benchmark: update help for new __rand_int__ form. * [FIX] Fix broken rdbWriteRaw() return value check in rdb.c (harmless). * [FIX] Log to what master a slave is going to connect to. * [FIX] Only run the fast active expire cycle if master & enabled. * [FIX] Fixed a replication bug involving 32 bit instances and big datasets hard to compress that resulted into more than 2GB of RDB file sent. @ text @d1 1 a1 1 $NetBSD$ d4 1 a4 1 --- src/Makefile.orig 2013-12-11 14:31:57.000000000 +0000 d6 1 a6 1 @@@@ -23,8 +23,8 @@@@ WARN=-Wall @ 1.1 log @Import redis from wip! Redis is a persistent key-value database with built-in net interface @ text @d3 2 a4 3 * Add DESTDIR support. --- src/Makefile.orig 2012-12-03 11:53:09.000000000 +0000 d6 2 a7 2 @@@@ -81,8 +81,8 @@@@ REDIS_LD=$(QUIET_LINK)$(CC) $(FINAL_LDFL REDIS_INSTALL=$(QUIET_INSTALL)$(INSTALL) d10 4 a13 4 -INSTALL_BIN= $(PREFIX)/bin -INSTALL= cp -pf +INSTALL_BIN= $(DESTDIR)$(PREFIX)/bin +INSTALL= $(BSD_INSTALL_PROGRAM) d15 2 a16 2 CCCOLOR="\033[34m" LINKCOLOR="\033[34;1m" @