]> git.saurik.com Git - redis.git/log
redis.git
12 years agoOn crash suggest to give --test-memory a try.
antirez [Sun, 18 Mar 2012 10:35:35 +0000 (11:35 +0100)] 
On crash suggest to give --test-memory a try.

12 years agoMemory test function now less boring thanks to screen-wide progress bar.
antirez [Fri, 16 Mar 2012 20:19:53 +0000 (21:19 +0100)] 
Memory test function now less boring thanks to screen-wide progress bar.

12 years agoHem... actual memtest.c file added.
antirez [Fri, 16 Mar 2012 16:21:49 +0000 (17:21 +0100)] 
Hem... actual memtest.c file added.

12 years agoFirst implementation of --test-memory. Still a work in progress.
antirez [Fri, 16 Mar 2012 16:17:39 +0000 (17:17 +0100)] 
First implementation of --test-memory. Still a work in progress.

12 years agoFix for issue #391.
antirez [Thu, 15 Mar 2012 19:51:35 +0000 (20:51 +0100)] 
Fix for issue #391.

Use a simple protocol between clientsCron() and helper functions to
understand if the client is still valind and clientsCron() should
continue processing or if the client was freed and we should continue
with the next one.

12 years agofix typo
huangz1990 [Thu, 15 Mar 2012 06:27:14 +0000 (14:27 +0800)] 
fix typo

12 years agoReclaim space from the client querybuf if needed.
antirez [Wed, 14 Mar 2012 14:32:30 +0000 (15:32 +0100)] 
Reclaim space from the client querybuf if needed.

12 years agosds.c: sdsAllocSize() function added.
antirez [Wed, 14 Mar 2012 13:58:26 +0000 (14:58 +0100)] 
sds.c: sdsAllocSize() function added.

12 years agosds.c new function sdsRemoveFreeSpace().
antirez [Wed, 14 Mar 2012 09:13:23 +0000 (10:13 +0100)] 
sds.c new function sdsRemoveFreeSpace().

The new function is used in order to resize the string allocation so
that only the minimal allocation possible is used, removing all the free
space at the end of the string normally used to improve efficiency of
concatenation operations.

12 years agoCall all the helper functions needed by clientsCron() as clientsCronSomething() for...
antirez [Wed, 14 Mar 2012 08:56:22 +0000 (09:56 +0100)] 
Call all the helper functions needed by clientsCron() as clientsCronSomething() for clarity.

12 years agoCLIENT LIST test modified to reflect the new output.
antirez [Tue, 13 Mar 2012 17:06:29 +0000 (18:06 +0100)] 
CLIENT LIST test modified to reflect the new output.

12 years agoProcess async client checks like client timeouts and BLPOP timeouts incrementally...
antirez [Tue, 13 Mar 2012 17:05:11 +0000 (18:05 +0100)] 
Process async client checks like client timeouts and BLPOP timeouts incrementally using a circular list.

12 years agoAdded a qbuf-free field to CLIENT LIST output.
antirez [Tue, 13 Mar 2012 12:26:33 +0000 (13:26 +0100)] 
Added a qbuf-free field to CLIENT LIST output.

12 years agoClient creation time in redisClient structure. New age field in CLIENT LIST output.
antirez [Tue, 13 Mar 2012 12:05:08 +0000 (13:05 +0100)] 
Client creation time in redisClient structure. New age field in CLIENT LIST output.

12 years agoc->bufpos initialization moved for aesthetics.
antirez [Tue, 13 Mar 2012 11:59:27 +0000 (12:59 +0100)] 
c->bufpos initialization moved for aesthetics.

12 years agoRDB hashes loading, fixed another bug in the loading of HT-encoded hashes: when the...
antirez [Tue, 13 Mar 2012 09:59:29 +0000 (10:59 +0100)] 
RDB hashes loading, fixed another bug in the loading of HT-encoded hashes: when the hash entry is too big for ziplist, add the field, then convert. The code used to break before the new entry was inserted, resulting into missing fields in the loaded Hash object.

12 years agoRDB hashes loading fixed removing the assertion that failed every time an HT-encoded...
antirez [Tue, 13 Mar 2012 08:49:11 +0000 (09:49 +0100)] 
RDB hashes loading fixed removing the assertion that failed every time an HT-encoded hash was loaded.

12 years agoMerge pull request #378 from quiver/unstable
Salvatore Sanfilippo [Sat, 10 Mar 2012 12:22:29 +0000 (04:22 -0800)] 
Merge pull request #378 from quiver/unstable

fix typo of redis.conf

12 years agofix typo of redis.conf
quiver [Sat, 10 Mar 2012 12:06:08 +0000 (21:06 +0900)] 
fix typo of redis.conf

12 years agoBuild dependencies updated.
antirez [Sat, 10 Mar 2012 11:40:03 +0000 (12:40 +0100)] 
Build dependencies updated.

12 years agoRDB4 support in redis-check-dump.
antirez [Sat, 10 Mar 2012 11:38:42 +0000 (12:38 +0100)] 
RDB4 support in redis-check-dump.

12 years agoRDB version is no 4, because small hashes are now encoded as ziplists, so older versi...
antirez [Sat, 10 Mar 2012 11:35:15 +0000 (12:35 +0100)] 
RDB version is no 4, because small hashes are now encoded as ziplists, so older versions of Redis will not understand this format.

12 years agohash-max-zipmap-... renamed hash-max-ziplist-... in defalt conf for tests.
antirez [Sat, 10 Mar 2012 11:14:17 +0000 (12:14 +0100)] 
hash-max-zipmap-... renamed hash-max-ziplist-... in defalt conf for tests.

12 years agoMore vertical space saved.
antirez [Sat, 10 Mar 2012 10:11:28 +0000 (11:11 +0100)] 
More vertical space saved.

12 years agoMinor code aesthetic change to use Redis code base style rule of saving vertical...
antirez [Sat, 10 Mar 2012 10:09:43 +0000 (11:09 +0100)] 
Minor code aesthetic change to use Redis code base style rule of saving vertical space when possible.

12 years agoRemoved handling of deprecated hash-max-zipmap-entries nad hash-map-zipmap-value...
antirez [Sat, 10 Mar 2012 09:38:53 +0000 (10:38 +0100)] 
Removed handling of deprecated hash-max-zipmap-entries nad hash-map-zipmap-value. Pieter is too good with users ;). Better to have them switch to a saner configuration ASAP after the 2.6 upgrade.

12 years agoAdded a top-function comment to rioWriteHashIteratorCursor() to better specify what...
antirez [Sat, 10 Mar 2012 09:36:51 +0000 (10:36 +0100)] 
Added a top-function comment to rioWriteHashIteratorCursor() to better specify what the function does. Not immediately clear from the name.

12 years agoMerge conflicts resolved.
antirez [Fri, 9 Mar 2012 21:07:45 +0000 (22:07 +0100)] 
Merge conflicts resolved.

12 years agoInstantaneous ops/sec figure in INFO output.
antirez [Thu, 8 Mar 2012 15:15:37 +0000 (16:15 +0100)] 
Instantaneous ops/sec figure in INFO output.

12 years agoSupport for all the redis.conf fields in CONFIG GET. config.c refactored a bit.
antirez [Thu, 8 Mar 2012 11:14:23 +0000 (12:14 +0100)] 
Support for all the redis.conf fields in CONFIG GET. config.c refactored a bit.

12 years agorun_id added to INFO output.
antirez [Thu, 8 Mar 2012 09:13:12 +0000 (10:13 +0100)] 
run_id added to INFO output.

The Run ID is a field that identifies a single execution of the Redis
server. It can be useful for many purposes as it makes easy to detect if
the instance we are talking about is the same, or if it is a different
one or was rebooted. An application of run_id will be in the partial
synchronization of replication, where a slave may request a partial sync
from a given offset only if it is talking with the same master. Another
application is in failover and monitoring scripts.

12 years agoclusterGetRandomName() generalized into getRandomHexChars() so that we can use it...
antirez [Thu, 8 Mar 2012 09:08:44 +0000 (10:08 +0100)] 
clusterGetRandomName() generalized into getRandomHexChars() so that we can use it for the run_id field as well.

12 years agoBy default Redis refuses writes with an error if the latest BGSAVE failed (and at...
antirez [Wed, 7 Mar 2012 17:02:26 +0000 (18:02 +0100)] 
By default Redis refuses writes with an error if the latest BGSAVE failed (and at least one save point is configured). However people having good monitoring systems may prefer a server that continues to work, since they are notified that there are problems by their monitoring systems. This commit implements the ability to turn the feature on or off via redis.conf and CONFIG SET.

12 years agoRefuse writes if can't persist on disk.
antirez [Wed, 7 Mar 2012 12:05:46 +0000 (13:05 +0100)] 
Refuse writes if can't persist on disk.

Redis now refuses accepting write queries if RDB persistence is
configured, but RDB snapshots can't be generated for some reason.
The status of the latest background save operation is now exposed
in the INFO output as well. This fixes issue #90.

12 years agoBetter MONITOR output, now includes client ip:port or the lua string if the command...
antirez [Wed, 7 Mar 2012 11:12:15 +0000 (12:12 +0100)] 
Better MONITOR output, now includes client ip:port or the lua string if the command was executed by the scripting engine.

12 years agoanetPeerToString() automatically populates ip/port with something that may be provide...
antirez [Wed, 7 Mar 2012 10:30:30 +0000 (11:30 +0100)] 
anetPeerToString() automatically populates ip/port with something that may be provided to the user as output in case of errors.

12 years agoTIME command.
antirez [Wed, 7 Mar 2012 09:38:01 +0000 (10:38 +0100)] 
TIME command.

12 years agoredis-cli: CSV output added, used for the --slave mode.
antirez [Wed, 29 Feb 2012 16:43:03 +0000 (17:43 +0100)] 
redis-cli: CSV output added, used for the --slave mode.

12 years agoInitial implementation of redis-cli --slave support.
antirez [Wed, 29 Feb 2012 16:10:21 +0000 (17:10 +0100)] 
Initial implementation of redis-cli --slave support.

12 years agoPing the slave using the standard protocol instead of the inline one.
antirez [Wed, 29 Feb 2012 15:33:54 +0000 (16:33 +0100)] 
Ping the slave using the standard protocol instead of the inline one.

12 years agoBetter implementation for BRPOP/BLPOP in the non blocking case.
antirez [Wed, 29 Feb 2012 13:41:57 +0000 (14:41 +0100)] 
Better implementation for BRPOP/BLPOP in the non blocking case.

12 years agolpush arguments vector rewrite modified for more speed and to memory leak removal.
antirez [Wed, 29 Feb 2012 12:38:30 +0000 (13:38 +0100)] 
lpush arguments vector rewrite modified for more speed and to memory leak removal.

12 years agoVersion bumped to 2.9.5
antirez [Tue, 28 Feb 2012 23:54:52 +0000 (00:54 +0100)] 
Version bumped to 2.9.5

12 years agoBetter system for additional commands replication.
antirez [Tue, 28 Feb 2012 23:46:50 +0000 (00:46 +0100)] 
Better system for additional commands replication.

The new code uses a more generic data structure to describe redis operations.
The new design allows for multiple alsoPropagate() calls within the scope of a
single command, that is useful in different contexts. For instance there
when there are multiple clients doing BRPOPLPUSH against the same list,
and a variadic LPUSH is performed against this list, the blocked clients
will both be served, and we should correctly replicate multiple LPUSH
commands after the replication of the current command.

12 years agoAdded a new API to replicate an additional command after the replication of the curre...
antirez [Tue, 28 Feb 2012 17:03:08 +0000 (18:03 +0100)] 
Added a new API to replicate an additional command after the replication of the currently executed command, in order to propagte the LPUSH originating from RPOPLPUSH and indirectly by BRPOPLPUSH.

12 years agopropagate() prototype added to redis.h
antirez [Tue, 28 Feb 2012 15:20:41 +0000 (16:20 +0100)] 
propagate() prototype added to redis.h

12 years agoVar renamed into pushGenericCommand() to better reflect what it means.
antirez [Tue, 28 Feb 2012 15:17:55 +0000 (16:17 +0100)] 
Var renamed into pushGenericCommand() to better reflect what it means.

12 years agoAdded command propagation API.
antirez [Tue, 28 Feb 2012 15:17:00 +0000 (16:17 +0100)] 
Added command propagation API.

12 years agoMerge pull request #362 from fawek/mac-build-fix
Salvatore Sanfilippo [Sun, 26 Feb 2012 15:18:43 +0000 (07:18 -0800)] 
Merge pull request #362 from fawek/mac-build-fix

Fix the build on Mac OS X, where features.h is non-existent

12 years agoFix the build on Mac OS X, where features.h is non-existent
Jakub Wieczorek [Sun, 26 Feb 2012 14:10:42 +0000 (15:10 +0100)] 
Fix the build on Mac OS X, where features.h is non-existent

12 years agouse gcc sync builtins for memory counter when possible
Premysl Hruby [Sun, 26 Feb 2012 08:59:32 +0000 (09:59 +0100)] 
use gcc sync builtins for memory counter when possible

12 years agofix redis-benchmark memory leak
Premysl Hruby [Sun, 26 Feb 2012 09:01:27 +0000 (10:01 +0100)] 
fix redis-benchmark memory leak

12 years agolua_cmsgpack.c added
antirez [Fri, 24 Feb 2012 14:46:25 +0000 (15:46 +0100)] 
lua_cmsgpack.c added

12 years agoLua_cmsgpack added to Redis scripting.
antirez [Fri, 24 Feb 2012 14:45:16 +0000 (15:45 +0100)] 
Lua_cmsgpack added to Redis scripting.

12 years agoredis-benchmark: a few fixes to pipelining implementation.
antirez [Thu, 23 Feb 2012 14:39:26 +0000 (15:39 +0100)] 
redis-benchmark: a few fixes to pipelining implementation.

12 years agoredis-benchmark: Initial support for pipelining.
antirez [Thu, 23 Feb 2012 14:02:43 +0000 (15:02 +0100)] 
redis-benchmark: Initial support for pipelining.

12 years agounstable version called 2.9.4
antirez [Wed, 22 Feb 2012 16:44:18 +0000 (17:44 +0100)] 
unstable version called 2.9.4

12 years agoThe universe is 80 columns wide, accept it.
antirez [Wed, 22 Feb 2012 16:22:40 +0000 (17:22 +0100)] 
The universe is 80 columns wide, accept it.

12 years agoMerge pull request #304 from bradvoth/unstable
Salvatore Sanfilippo [Wed, 22 Feb 2012 16:19:54 +0000 (08:19 -0800)] 
Merge pull request #304 from bradvoth/unstable

Simple install script changes

12 years agoFix for issue #306, thanks to tchajed (on github) for the pull request. The original...
antirez [Wed, 22 Feb 2012 15:07:06 +0000 (16:07 +0100)] 
Fix for issue #306, thanks to tchajed (on github) for the pull request. The original patch was reworked a bit.

12 years agoRedis-cli should accept help command even if there is no connection to the server.
antirez [Wed, 22 Feb 2012 14:16:11 +0000 (15:16 +0100)] 
Redis-cli should accept help command even if there is no connection to the server.

12 years agoeven less false positive on obuf-limits test.
antirez [Wed, 22 Feb 2012 10:25:30 +0000 (11:25 +0100)] 
even less false positive on obuf-limits test.

12 years agoMerge remote-tracking branch 'origin/unstable' into unstable
antirez [Wed, 22 Feb 2012 08:52:29 +0000 (09:52 +0100)] 
Merge remote-tracking branch 'origin/unstable' into unstable

12 years agozzlIsInRange() now is capable of handling empty sorted sets that may end inside the...
antirez [Wed, 22 Feb 2012 08:52:10 +0000 (09:52 +0100)] 
zzlIsInRange() now is capable of handling empty sorted sets that may end inside the data set when loading very old RDB files produced by early-stage versions of Redis.

12 years agoMerge pull request #347 from pietern/unstable-segv
Salvatore Sanfilippo [Tue, 21 Feb 2012 18:29:55 +0000 (10:29 -0800)] 
Merge pull request #347 from pietern/unstable-segv

Force SIGSEGV without HAVE_BACKTRACE (unstable)

12 years agoSolaris has backtrace(3)
Pieter Noordhuis [Tue, 21 Feb 2012 18:11:20 +0000 (10:11 -0800)] 
Solaris has backtrace(3)

12 years agoAlso force SIGSEGV without HAVE_BACKTRACE
Pieter Noordhuis [Tue, 21 Feb 2012 18:05:46 +0000 (10:05 -0800)] 
Also force SIGSEGV without HAVE_BACKTRACE

12 years agoFixed undefined behavior in *INCR style functions overflow detection. Sorry clang!
antirez [Tue, 21 Feb 2012 17:25:49 +0000 (18:25 +0100)] 
Fixed undefined behavior in *INCR style functions overflow detection. Sorry clang!

12 years agobzero -> memset
antirez [Tue, 21 Feb 2012 09:06:04 +0000 (10:06 +0100)] 
bzero -> memset

12 years agoFix 32bit build of hiredis
antirez [Sun, 19 Feb 2012 19:49:20 +0000 (20:49 +0100)] 
Fix 32bit build of hiredis

12 years agoApplied a few modifications to hiredis to tune it for speed (redis-benchmark) and...
antirez [Sun, 19 Feb 2012 19:33:59 +0000 (20:33 +0100)] 
Applied a few modifications to hiredis to tune it for speed (redis-benchmark) and ability to read more deeply nested replies (redis-cli).

12 years agoThe hiredis lib shipped with Redis was updated to latest version.
antirez [Sun, 19 Feb 2012 19:26:36 +0000 (20:26 +0100)] 
The hiredis lib shipped with Redis was updated to latest version.

12 years agoDon't expire keys when loading an RDB after a SYNC
Pieter Noordhuis [Sat, 14 Jan 2012 01:49:16 +0000 (17:49 -0800)] 
Don't expire keys when loading an RDB after a SYNC

The cron is responsible for expiring keys. When keys are expired at
load time, it is possible that the snapshot of a master node gets
modified. This can in turn lead to inconsistencies in the data set.

A more concrete example of this behavior follows. A user reported a
slave that would show an monotonically increase input buffer length,
shortly after completing a SYNC. Also, `INFO` output showed a single
blocked client, which could only be the master link. Investigation
showed that indeed the `BRPOP` command was fed by the master. This
command can only end up in the stream of write operations when it did
NOT block, and effectively executed `RPOP`. However, when the key
involved in the `BRPOP` is expired BEFORE the command is executed, the
client executing it will block. The client in this case, is the master
link.

12 years agoIssue #330 regression test.
antirez [Thu, 16 Feb 2012 15:13:40 +0000 (16:13 +0100)] 
Issue #330 regression test.

12 years agoNow HINCRBY can detect overflows too. Fix for issue #330.
antirez [Thu, 16 Feb 2012 15:09:08 +0000 (16:09 +0100)] 
Now HINCRBY can detect overflows too. Fix for issue #330.

12 years agoReturn ASAP from checkClientOutputBufferLimits() if c->reply_bytes is zero.
antirez [Thu, 16 Feb 2012 11:20:56 +0000 (12:20 +0100)] 
Return ASAP from checkClientOutputBufferLimits() if c->reply_bytes is zero.

12 years agoMerge branch 'issue327' into unstable
antirez [Thu, 16 Feb 2012 08:40:27 +0000 (09:40 +0100)] 
Merge branch 'issue327' into unstable

12 years agoAdd stdint.h in endianconv.h to fix issue #336.
antirez [Wed, 15 Feb 2012 11:21:04 +0000 (12:21 +0100)] 
Add stdint.h in endianconv.h to fix issue #336.

12 years agoredis-check-aof is now large files safe also on 32 bit systems.
antirez [Tue, 14 Feb 2012 18:57:31 +0000 (19:57 +0100)] 
redis-check-aof is now large files safe also on 32 bit systems.

12 years agoadd -f flag to cp when installing, otherwise stopping the server is
antirez [Tue, 14 Feb 2012 15:15:20 +0000 (16:15 +0100)] 
add -f flag to cp when installing, otherwise stopping the server is
needed when installing a new Redis version. Thanks to Scott Kevill.
Fixes issue #335.

12 years agoendian.c/h -> endianconv.c/h to avoid issues with broken libraries search paths.
antirez [Tue, 14 Feb 2012 15:11:46 +0000 (16:11 +0100)] 
endian.c/h -> endianconv.c/h to avoid issues with broken libraries search paths.

12 years agoMerge remote-tracking branch 'origin/unstable' into unstable
antirez [Tue, 14 Feb 2012 15:02:04 +0000 (16:02 +0100)] 
Merge remote-tracking branch 'origin/unstable' into unstable

12 years agointset.c endianess fixes.
antirez [Tue, 14 Feb 2012 14:35:50 +0000 (15:35 +0100)] 
intset.c endianess fixes.

12 years agoMerge pull request #334 from lsbardel/quantredis
Salvatore Sanfilippo [Mon, 13 Feb 2012 23:05:59 +0000 (15:05 -0800)] 
Merge pull request #334 from lsbardel/quantredis

added lua struct c extension

12 years agoadded lua struct c extension
lsbardel [Mon, 13 Feb 2012 21:05:21 +0000 (21:05 +0000)] 
added lua struct c extension

12 years agoziplist.c endianess fixes, chapter 5.
antirez [Thu, 9 Feb 2012 16:09:01 +0000 (17:09 +0100)] 
ziplist.c endianess fixes, chapter 5.

12 years agoziplist.c endianess fixes, chapter 4.
antirez [Thu, 9 Feb 2012 15:36:25 +0000 (16:36 +0100)] 
ziplist.c endianess fixes, chapter 4.

12 years agoziplist.c endianess fixes, chapter 3.
antirez [Thu, 9 Feb 2012 15:28:35 +0000 (16:28 +0100)] 
ziplist.c endianess fixes, chapter 3.

12 years agomore ziplist.c endianess fixes
antirez [Wed, 8 Feb 2012 22:20:39 +0000 (23:20 +0100)] 
more ziplist.c endianess fixes

12 years agoziplist.c fixes for bigendian
antirez [Wed, 8 Feb 2012 21:59:35 +0000 (22:59 +0100)] 
ziplist.c fixes for bigendian

12 years agoA few small BSD related fixes.
antirez [Wed, 8 Feb 2012 21:24:59 +0000 (22:24 +0100)] 
A few small BSD related fixes.

12 years agomore practical maxmemory+slaves hint in redis.conf
antirez [Tue, 7 Feb 2012 23:20:46 +0000 (00:20 +0100)] 
more practical maxmemory+slaves hint in redis.conf

12 years agoredis.conf updated with new maxmemory semantics
antirez [Tue, 7 Feb 2012 23:17:27 +0000 (00:17 +0100)] 
redis.conf updated with new maxmemory semantics

12 years agodebugging messages removed from freeMemoryIfNeeded()
antirez [Tue, 7 Feb 2012 23:10:20 +0000 (00:10 +0100)] 
debugging messages removed from freeMemoryIfNeeded()

12 years agoFixes to c->reply_bytes computation, and debug messages to closely study the behavior...
antirez [Tue, 7 Feb 2012 16:41:31 +0000 (17:41 +0100)] 
Fixes to c->reply_bytes computation, and debug messages to closely study the behavior of memory pressure + slaves + maxmemory + blocked slaves.

12 years agoFixes to 2.6 release notes file
antirez [Tue, 7 Feb 2012 14:08:38 +0000 (15:08 +0100)] 
Fixes to 2.6 release notes file

12 years agoPrecision of getClientOutputBufferMemoryUsage() greatily improved, see issue #327...
antirez [Tue, 7 Feb 2012 12:05:36 +0000 (13:05 +0100)] 
Precision of getClientOutputBufferMemoryUsage() greatily improved, see issue #327 for more information.

12 years agofreeMemoryIfNeeded() minor refactoring
antirez [Mon, 6 Feb 2012 15:56:42 +0000 (16:56 +0100)] 
freeMemoryIfNeeded() minor refactoring

12 years agoAlso remove size of AOF buffers from used memory when doing the math for freeMemoryIf...
antirez [Mon, 6 Feb 2012 15:35:43 +0000 (16:35 +0100)] 
Also remove size of AOF buffers from used memory when doing the math for freeMemoryIfNeeded()

12 years agoA first (work in progress) release notes for 2.6
antirez [Sun, 5 Feb 2012 10:08:01 +0000 (11:08 +0100)] 
A first (work in progress) release notes for 2.6