]> git.saurik.com Git - redis.git/log
redis.git
14 years agoFunction to compute RSS memory usage in a fast way, suitable to be called inside...
antirez [Tue, 2 Nov 2010 10:40:35 +0000 (11:40 +0100)] 
Function to compute RSS memory usage in a fast way, suitable to be called inside keys eviction loops

14 years agoremoved a number of stupid compilation warnings on Linux
antirez [Tue, 2 Nov 2010 10:15:09 +0000 (11:15 +0100)] 
removed a number of stupid compilation warnings on Linux

14 years agozmalloc functions to get RSS and fragmentation refactored into two separated functions
antirez [Tue, 2 Nov 2010 09:51:09 +0000 (10:51 +0100)] 
zmalloc functions to get RSS and fragmentation refactored into two separated functions

14 years agomerge conflict resolved
antirez [Thu, 28 Oct 2010 20:59:47 +0000 (22:59 +0200)] 
merge conflict resolved

14 years agoRewrite comment that was no longer valid
Pieter Noordhuis [Thu, 28 Oct 2010 15:59:05 +0000 (16:59 +0100)] 
Rewrite comment that was no longer valid

14 years agoWhen REDIS_CLOSE_AFTER_REPLY is set, there may never be new replies
Pieter Noordhuis [Thu, 28 Oct 2010 15:52:16 +0000 (16:52 +0100)] 
When REDIS_CLOSE_AFTER_REPLY is set, there may never be new replies

14 years agoUnify two client flags that mean the same
Pieter Noordhuis [Thu, 28 Oct 2010 14:07:45 +0000 (15:07 +0100)] 
Unify two client flags that mean the same

14 years agoMerge remote branch 'remotes/pietern/zrevrangebyscore'
antirez [Thu, 28 Oct 2010 12:12:25 +0000 (14:12 +0200)] 
Merge remote branch 'remotes/pietern/zrevrangebyscore'

14 years agoremoved useless spaces from DEBUG OBJECT output
antirez [Wed, 27 Oct 2010 15:11:17 +0000 (17:11 +0200)] 
removed useless spaces from DEBUG OBJECT output

14 years agoReturn error to client on wrong type for HMGET
Pieter Noordhuis [Tue, 26 Oct 2010 10:26:27 +0000 (12:26 +0200)] 
Return error to client on wrong type for HMGET

14 years agoadded a missing prototype from syncio.c in redis.h
antirez [Mon, 25 Oct 2010 08:54:37 +0000 (10:54 +0200)] 
added a missing prototype from syncio.c in redis.h

14 years agomore generally usable i/o functions moved to syncio.c
antirez [Mon, 25 Oct 2010 08:49:15 +0000 (10:49 +0200)] 
more generally usable i/o functions moved to syncio.c

14 years agosynchronous I/O networking functions originally used just for replication refactored...
antirez [Sun, 24 Oct 2010 14:22:52 +0000 (16:22 +0200)] 
synchronous I/O networking functions originally used just for replication refactored in a file as generally useful, they are used in the cluster branch for MIGRATE.

14 years agoExclusively use either tcmalloc or OSX's native malloc_size()
Pieter Noordhuis [Sat, 23 Oct 2010 08:18:48 +0000 (10:18 +0200)] 
Exclusively use either tcmalloc or OSX's native malloc_size()

14 years agoDon't use prefix when malloc_size() can be called
Pieter Noordhuis [Sat, 23 Oct 2010 07:59:28 +0000 (09:59 +0200)] 
Don't use prefix when malloc_size() can be called

Also, use tcmalloc functions explicitly via macros to prevent symbol
lookups to resolve to native malloc/free on OSX.

14 years agoMake sure to reset the signal handler and deliver again the original crashing signal...
antirez [Fri, 22 Oct 2010 21:30:48 +0000 (23:30 +0200)] 
Make sure to reset the signal handler and deliver again the original crashing signal when dumping the stack trace. This will allow to dump the core if core dumping is enabled.

14 years agoif server.saveparamslen is not set, don't save the DB on exit.
Robey Pointer [Thu, 30 Sep 2010 18:53:34 +0000 (11:53 -0700)] 
if server.saveparamslen is not set, don't save the DB on exit.

14 years agoREADME more specific about tcmalloc space benefits
antirez [Thu, 21 Oct 2010 22:18:26 +0000 (00:18 +0200)] 
README more specific about tcmalloc space benefits

14 years agoMakefile typo fixed for tcmalloc option
antirez [Thu, 21 Oct 2010 22:16:32 +0000 (00:16 +0200)] 
Makefile typo fixed for tcmalloc option

14 years agoreports if tcmalloc is in used in INFO output
antirez [Thu, 21 Oct 2010 22:10:17 +0000 (00:10 +0200)] 
reports if tcmalloc is in used in INFO output

14 years agosupport for compiling with tcmalloc
antirez [Thu, 21 Oct 2010 22:06:44 +0000 (00:06 +0200)] 
support for compiling with tcmalloc

14 years agoversion bumped to 2.1.5
antirez [Thu, 21 Oct 2010 15:55:44 +0000 (17:55 +0200)] 
version bumped to 2.1.5

14 years agoSkip object encoding where it doesn't make sense
Pieter Noordhuis [Sun, 17 Oct 2010 16:09:23 +0000 (18:09 +0200)] 
Skip object encoding where it doesn't make sense

14 years agoObject encoding in hash function is done by a more specific function
Pieter Noordhuis [Sun, 17 Oct 2010 15:46:55 +0000 (17:46 +0200)] 
Object encoding in hash function is done by a more specific function

14 years agoRemoved unused command flags
Pieter Noordhuis [Sun, 17 Oct 2010 15:31:40 +0000 (17:31 +0200)] 
Removed unused command flags

14 years agoConvert objects in the command procs instead of the protocol code
Pieter Noordhuis [Sun, 17 Oct 2010 15:21:41 +0000 (17:21 +0200)] 
Convert objects in the command procs instead of the protocol code

14 years agoPrevent clients from making too large multibulk requests
Pieter Noordhuis [Fri, 15 Oct 2010 17:15:38 +0000 (19:15 +0200)] 
Prevent clients from making too large multibulk requests

14 years agoAdd benchmark for MSET
Pieter Noordhuis [Fri, 15 Oct 2010 16:17:06 +0000 (18:17 +0200)] 
Add benchmark for MSET

14 years agoprevent small integer sharing when maxmemory is active. So every object will use...
antirez [Fri, 15 Oct 2010 16:04:05 +0000 (18:04 +0200)] 
prevent small integer sharing when maxmemory is active. So every object will use a private LRU field and the LRU algorithm can work well

14 years agoChange protocol from bulk to inline in redis-benchmark
Pieter Noordhuis [Fri, 15 Oct 2010 15:34:20 +0000 (17:34 +0200)] 
Change protocol from bulk to inline in redis-benchmark

14 years agoDon't reset the client when processCommand returns REDIS_ERR
Pieter Noordhuis [Fri, 15 Oct 2010 15:27:05 +0000 (17:27 +0200)] 
Don't reset the client when processCommand returns REDIS_ERR

14 years agoChange tests to use either the inline or the multibulk protocol
Pieter Noordhuis [Fri, 15 Oct 2010 15:25:20 +0000 (17:25 +0200)] 
Change tests to use either the inline or the multibulk protocol

14 years agoShow output of leaks command on a leak
Pieter Noordhuis [Fri, 15 Oct 2010 13:56:16 +0000 (15:56 +0200)] 
Show output of leaks command on a leak

14 years agoChange tcl client to only use the multibulk protocol
Pieter Noordhuis [Fri, 15 Oct 2010 13:50:29 +0000 (15:50 +0200)] 
Change tcl client to only use the multibulk protocol

14 years agoRefactor request parsing code for efficiency
Pieter Noordhuis [Fri, 15 Oct 2010 13:40:25 +0000 (15:40 +0200)] 
Refactor request parsing code for efficiency

14 years agoAdd tests for OK on QUIT
Pieter Noordhuis [Fri, 15 Oct 2010 10:54:53 +0000 (12:54 +0200)] 
Add tests for OK on QUIT

14 years agoCONFIG RESETSTAT no longer resets the server uptime. Now keyspace hits/misses are...
antirez [Fri, 15 Oct 2010 10:29:05 +0000 (12:29 +0200)] 
CONFIG RESETSTAT no longer resets the server uptime. Now keyspace hits/misses are reset as well.

14 years agominor aesthetic change
antirez [Fri, 15 Oct 2010 10:22:48 +0000 (12:22 +0200)] 
minor aesthetic change

14 years agoadded keyspace_hits and keyspace_misses fields in INFO output
antirez [Fri, 15 Oct 2010 10:19:21 +0000 (12:19 +0200)] 
added keyspace_hits and keyspace_misses fields in INFO output

14 years agomaxmemory-samples implemented in CONFIG command and configuration file
antirez [Fri, 15 Oct 2010 09:57:38 +0000 (11:57 +0200)] 
maxmemory-samples implemented in CONFIG command and configuration file

14 years agoDon't increment dirty on expireIfNeeded() as natural expires are not considered datab...
antirez [Fri, 15 Oct 2010 09:29:03 +0000 (11:29 +0200)] 
Don't increment dirty on expireIfNeeded() as natural expires are not considered database changes. This will avoid useless read-only commands in the AOF file as a result of, for instance, a GET operation triggering an expirIfNeeded() call resulting in an expired key removed.

14 years agoMerge remote branch 'pietern/ziplist-regression'
antirez [Thu, 14 Oct 2010 19:23:01 +0000 (21:23 +0200)] 
Merge remote branch 'pietern/ziplist-regression'

14 years agoimplemented different algorithms for maxmemory
antirez [Thu, 14 Oct 2010 19:22:21 +0000 (21:22 +0200)] 
implemented different algorithms for maxmemory

14 years agoReplace ziplist stresser and fix regression
Pieter Noordhuis [Thu, 14 Oct 2010 19:11:42 +0000 (21:11 +0200)] 
Replace ziplist stresser and fix regression

14 years agoObject approximated LRU algorithm enhanced / fixed / refactored. This is used for...
antirez [Thu, 14 Oct 2010 11:52:58 +0000 (13:52 +0200)] 
Object approximated LRU algorithm enhanced / fixed / refactored. This is used for the VM currently but will soon be used for maxmemory expiring.

14 years agoReturn error when min and/or max in the sorted set range spec is not a double
Pieter Noordhuis [Wed, 13 Oct 2010 19:58:21 +0000 (21:58 +0200)] 
Return error when min and/or max in the sorted set range spec is not a double

14 years agoMake ZREMRANGEBYSCORE accept the same range spec as ZRANGEBYSCORE
Pieter Noordhuis [Wed, 13 Oct 2010 19:43:58 +0000 (21:43 +0200)] 
Make ZREMRANGEBYSCORE accept the same range spec as ZRANGEBYSCORE

This allows to use inclusive/exclusive bounds for min and max when
deleting a range of scores from a sorted set.

14 years agoMerge branch 'master' into zrevrangebyscore
Pieter Noordhuis [Wed, 13 Oct 2010 18:29:50 +0000 (20:29 +0200)] 
Merge branch 'master' into zrevrangebyscore

14 years agoReturn OK on QUIT
Pieter Noordhuis [Wed, 13 Oct 2010 09:25:40 +0000 (11:25 +0200)] 
Return OK on QUIT

14 years agoAllow to specify which specific test files to run
Pieter Noordhuis [Wed, 13 Oct 2010 07:26:44 +0000 (09:26 +0200)] 
Allow to specify which specific test files to run

14 years agofree memory if the maxmemory parameter is reduced via CONFIG SET
antirez [Mon, 11 Oct 2010 14:46:21 +0000 (16:46 +0200)] 
free memory if the maxmemory parameter is reduced via CONFIG SET

14 years agomaxmemory fixed, we now try to release memory just before we check for the memory...
antirez [Mon, 11 Oct 2010 11:05:09 +0000 (13:05 +0200)] 
maxmemory fixed, we now try to release memory just before we check for the memory limit. Before fixing there was code between the attempt to free memory and the check for memory limits, and this code could result into allocations going again after the memory limit.

14 years agofixed an alignment problem with time_t is 32 bit, long is 64 bit, and arch is sparc...
antirez [Thu, 7 Oct 2010 14:21:35 +0000 (16:21 +0200)] 
fixed an alignment problem with time_t is 32 bit, long is 64 bit, and arch is sparc or any other where unaligned accesses will result to sigbus

14 years agominor typo fixed, reported by Thomas Bassetto
antirez [Thu, 7 Oct 2010 10:49:14 +0000 (12:49 +0200)] 
minor typo fixed, reported by Thomas Bassetto

14 years agointset stress testing added, ziplist stress testing relocated in a more appropriate...
antirez [Fri, 24 Sep 2010 09:15:06 +0000 (11:15 +0200)] 
intset stress testing added, ziplist stress testing relocated in a more appropriate place

14 years agoexplicit regression test for a ziplist bug added
antirez [Fri, 24 Sep 2010 08:37:00 +0000 (10:37 +0200)] 
explicit regression test for a ziplist bug added

14 years agoziplist implementation fuzzy tests
antirez [Fri, 24 Sep 2010 08:30:15 +0000 (10:30 +0200)] 
ziplist implementation fuzzy tests

14 years agoMerge remote branch 'pietern/ziplist-fix'
antirez [Thu, 23 Sep 2010 23:15:16 +0000 (01:15 +0200)] 
Merge remote branch 'pietern/ziplist-fix'

14 years agoAdd regression test and fix for >255 byte string entries
Pieter Noordhuis [Thu, 23 Sep 2010 20:04:19 +0000 (22:04 +0200)] 
Add regression test and fix for >255 byte string entries

14 years agoContributing file added
antirez [Thu, 23 Sep 2010 16:24:47 +0000 (18:24 +0200)] 
Contributing file added

14 years agomore tests for sds.c
antirez [Thu, 23 Sep 2010 14:39:02 +0000 (16:39 +0200)] 
more tests for sds.c

14 years agominimal C test framework + a first example sds.c tests
antirez [Thu, 23 Sep 2010 14:05:17 +0000 (16:05 +0200)] 
minimal C test framework + a first example sds.c tests

14 years agoUpdate rdb.c to properly work with new memory strategy for sorted sets
Pieter Noordhuis [Wed, 22 Sep 2010 16:07:52 +0000 (18:07 +0200)] 
Update rdb.c to properly work with new memory strategy for sorted sets

14 years agotwo leaks fixed
antirez [Wed, 22 Sep 2010 15:49:04 +0000 (17:49 +0200)] 
two leaks fixed

14 years agoerror generation format reverted to the new style after merge
antirez [Wed, 22 Sep 2010 14:10:13 +0000 (16:10 +0200)] 
error generation format reverted to the new style after merge

14 years agoMerge remote branch 'pietern/zset-mem'
antirez [Wed, 22 Sep 2010 14:09:33 +0000 (16:09 +0200)] 
Merge remote branch 'pietern/zset-mem'

14 years agopreventive conflict resolution to merge pietern/zset-mem
antirez [Wed, 22 Sep 2010 14:09:30 +0000 (16:09 +0200)] 
preventive conflict resolution to merge pietern/zset-mem

14 years agoMerge remote branch 'pietern/ziplist-eff'
antirez [Wed, 22 Sep 2010 10:59:25 +0000 (12:59 +0200)] 
Merge remote branch 'pietern/ziplist-eff'

14 years agonew parsing code bugfixing
antirez [Fri, 17 Sep 2010 14:05:01 +0000 (16:05 +0200)] 
new parsing code bugfixing

14 years agotry to parse the request in a smarter way to gain speed... work in progress
antirez [Fri, 17 Sep 2010 13:25:32 +0000 (15:25 +0200)] 
try to parse the request in a smarter way to gain speed... work in progress

14 years agoFinished code for sorted set memory efficiency
Pieter Noordhuis [Thu, 16 Sep 2010 13:36:36 +0000 (15:36 +0200)] 
Finished code for sorted set memory efficiency

14 years agoAdd ZREVRANGEBYSCORE and refactor Z*RANGEBYSCORE
Pieter Noordhuis [Thu, 16 Sep 2010 12:35:25 +0000 (14:35 +0200)] 
Add ZREVRANGEBYSCORE and refactor Z*RANGEBYSCORE

14 years agoMerge branch 'zset-mem' into zrevrangebyscore
Pieter Noordhuis [Thu, 16 Sep 2010 12:32:30 +0000 (14:32 +0200)] 
Merge branch 'zset-mem' into zrevrangebyscore

14 years agoAdded used CPU statistics in INFO output, obtained via getrusage()
antirez [Thu, 16 Sep 2010 11:28:58 +0000 (13:28 +0200)] 
Added used CPU statistics in INFO output, obtained via getrusage()

14 years agomodified a bit addReply() to play better with copy on write now that we have a static...
antirez [Thu, 16 Sep 2010 11:08:40 +0000 (13:08 +0200)] 
modified a bit addReply() to play better with copy on write now that we have a static buffer. Changed the name of a function from _ensureFileEvent() to _installWriteEvent().

14 years agoMerge remote branch 'pietern/networking-perf'
antirez [Thu, 16 Sep 2010 10:02:18 +0000 (12:02 +0200)] 
Merge remote branch 'pietern/networking-perf'

14 years agoStatic buffer in client struct has a constant size
Pieter Noordhuis [Thu, 16 Sep 2010 09:59:53 +0000 (11:59 +0200)] 
Static buffer in client struct has a constant size

14 years agoMerge remote branch 'pietern/networking-perf'
antirez [Thu, 16 Sep 2010 09:38:40 +0000 (11:38 +0200)] 
Merge remote branch 'pietern/networking-perf'

14 years agoThis should fix Issue 332: when there is a background process saving we still allow...
antirez [Wed, 15 Sep 2010 12:09:41 +0000 (14:09 +0200)] 
This should fix Issue 332: when there is a background process saving we still allow the hash tables to grow, but only when a critical treshold is reached. Formerly we prevented the resize at all triggering pathological O(N) behavior. Also there is a fix for the statistics in INFO about the number of keys expired

14 years agofixed typo in the latest commit
antirez [Tue, 14 Sep 2010 13:18:18 +0000 (15:18 +0200)] 
fixed typo in the latest commit

14 years agoAdvertise the existence of redis-check dump --fix when logging an error about corrupt...
antirez [Tue, 14 Sep 2010 13:09:37 +0000 (15:09 +0200)] 
Advertise the existence of redis-check dump --fix when logging an error about corrupted AOF file

14 years agoFixed missed use of INSTALL_TOP
Pedro Melo [Mon, 13 Sep 2010 15:50:57 +0000 (16:50 +0100)] 
Fixed missed use of INSTALL_TOP

Thanks to sylr@github

Signed-off-by: Pedro Melo <melo@simplicidade.org>
14 years agoMake sure INSTALL_TOP exists before we install to it
Pedro Melo [Mon, 13 Sep 2010 15:11:55 +0000 (16:11 +0100)] 
Make sure INSTALL_TOP exists before we install to it

Signed-off-by: Pedro Melo <melo@simplicidade.org>
14 years agoRename INSTALL_TOP to PREFIX; update documentation
Pedro Melo [Mon, 13 Sep 2010 15:09:11 +0000 (16:09 +0100)] 
Rename INSTALL_TOP to PREFIX; update documentation

Signed-off-by: Pedro Melo <melo@simplicidade.org>
14 years agoFix another test that sometimes returned the swapped object instead of encoding
Pieter Noordhuis [Mon, 13 Sep 2010 14:59:46 +0000 (16:59 +0200)] 
Fix another test that sometimes returned the swapped object instead of encoding

14 years agoredis-cli does no longer try to auto detect if it is used inside a pipe. To read...
antirez [Thu, 9 Sep 2010 14:38:10 +0000 (16:38 +0200)] 
redis-cli does no longer try to auto detect if it is used inside a pipe. To read last argument from stdandard input there is to use the -x option. This will make it playing better inside cron scripts and in general when stdin is hacked.

14 years agoFix for the init script provided with Redis, thanks to Rowan. This fixes issue 316
antirez [Thu, 9 Sep 2010 08:24:56 +0000 (10:24 +0200)] 
Fix for the init script provided with Redis, thanks to Rowan. This fixes issue 316

14 years agoFix re-enabled again, I forgot to check if VM was enabled before calling handleClient...
antirez [Wed, 8 Sep 2010 11:47:28 +0000 (13:47 +0200)] 
Fix re-enabled again, I forgot to check if VM was enabled before calling handleClientsBlockedOnSwappedKey()

14 years agolatest fix reverted, there is some problem reported by the CI test
antirez [Wed, 8 Sep 2010 11:45:51 +0000 (13:45 +0200)] 
latest fix reverted, there is some problem reported by the CI test

14 years agoFixed a race condition in VM happening when a key was deleted while there was a clien...
antirez [Wed, 8 Sep 2010 11:26:16 +0000 (13:26 +0200)] 
Fixed a race condition in VM happening when a key was deleted while there was a client waiting for this key to be resumed from swap to memory. The client would hang forever.

14 years agoFix test that sometimes returned the swapped object instead of encoding
Pieter Noordhuis [Tue, 7 Sep 2010 09:49:33 +0000 (11:49 +0200)] 
Fix test that sometimes returned the swapped object instead of encoding

14 years agoFix bug where the client is not present in server.clients when free'ing it
Pieter Noordhuis [Mon, 6 Sep 2010 09:27:22 +0000 (11:27 +0200)] 
Fix bug where the client is not present in server.clients when free'ing it

When creating the readable event results in an error (this happens when
the server hits OS limits), the client was not added to the list of
clients when freeClient was called. This results in an assertion error.
It is better to check this condition first and free the client
immediately when this condition occurs. Port of 00a90feb.

14 years agoAllow a random seed argument for the ziplist test binary
Pieter Noordhuis [Mon, 6 Sep 2010 22:08:42 +0000 (00:08 +0200)] 
Allow a random seed argument for the ziplist test binary

14 years agoFix updating the prevlen field of consecutive entries
Pieter Noordhuis [Mon, 6 Sep 2010 21:12:41 +0000 (23:12 +0200)] 
Fix updating the prevlen field of consecutive entries

In the condition where the prevlen field of the next entry on insert
and delete operations needs more bytes to be properly encoded, the next
entry also needs to be updated with a new prevlen. This patch makes sure
that this effect cascades throughout the ziplist.

14 years agoFix for solaris compilation bug Issue 325
antirez [Mon, 6 Sep 2010 08:12:44 +0000 (10:12 +0200)] 
Fix for solaris compilation bug Issue 325

14 years agoMerge branch 'master' into networking-perf
Pieter Noordhuis [Fri, 3 Sep 2010 14:44:31 +0000 (16:44 +0200)] 
Merge branch 'master' into networking-perf

Resolved conflict in src/db.c and changed adding an error to the reply
in blockingPopGenericCommand to use the new API.

14 years agoadded some comment and changed coding style for fix for 237
antirez [Fri, 3 Sep 2010 08:24:18 +0000 (10:24 +0200)] 
added some comment and changed coding style for fix for 237

14 years agofix for issue 237
Anko painting [Fri, 3 Sep 2010 04:13:27 +0000 (21:13 -0700)] 
fix for issue 237

14 years agoFix bug in gluing a deferred multi bulk length to the next reply chunk
Pieter Noordhuis [Thu, 2 Sep 2010 21:34:32 +0000 (23:34 +0200)] 
Fix bug in gluing a deferred multi bulk length to the next reply chunk

14 years agoUse specialized function to add status and error replies
Pieter Noordhuis [Thu, 2 Sep 2010 17:52:24 +0000 (19:52 +0200)] 
Use specialized function to add status and error replies