]> git.saurik.com Git - redis.git/log
redis.git
13 years agobetter bug report info on crash
antirez [Thu, 24 Nov 2011 14:47:26 +0000 (15:47 +0100)] 
better bug report info on crash

13 years agominor refactoring to networking.c adding a separated function to get a string represe...
antirez [Thu, 24 Nov 2011 14:04:42 +0000 (15:04 +0100)] 
minor refactoring to networking.c adding a separated function to get a string representing the current state of all the connected clients.

13 years agolast executed command in CLIENT LIST output.
antirez [Thu, 24 Nov 2011 13:56:34 +0000 (14:56 +0100)] 
last executed command in CLIENT LIST output.

13 years agoUpdate to jemalloc 2.2.5
jbergstroem [Wed, 23 Nov 2011 20:36:25 +0000 (21:36 +0100)] 
Update to jemalloc 2.2.5

13 years agonew counter in INFO output: rejected_connections with number of dropped connections...
antirez [Wed, 23 Nov 2011 17:38:12 +0000 (18:38 +0100)] 
new counter in INFO output: rejected_connections with number of dropped connections because of maxclients limit reached.

13 years agoMerge remote-tracking branch 'origin/unstable' into unstable
antirez [Tue, 22 Nov 2011 13:27:53 +0000 (14:27 +0100)] 
Merge remote-tracking branch 'origin/unstable' into unstable

13 years agoMore fixes in the Redis command table, to make sure all the keys are detected by...
antirez [Tue, 22 Nov 2011 13:27:32 +0000 (14:27 +0100)] 
More fixes in the Redis command table, to make sure all the keys are detected by Redis Cluster.

13 years agoMerge pull request #199 from jerem/patch-1
Salvatore Sanfilippo [Tue, 22 Nov 2011 10:43:28 +0000 (02:43 -0800)] 
Merge pull request #199 from jerem/patch-1

Fixed a typo in comments.

13 years agoFixed command table for SETEX and PSETEX causing the expire time to be hashed by...
antirez [Tue, 22 Nov 2011 09:16:15 +0000 (10:16 +0100)] 
Fixed command table for SETEX and PSETEX causing the expire time to be hashed by Redis cluster instead of the key.

13 years agocomment describing the Redis command table enhanced
antirez [Tue, 22 Nov 2011 09:13:45 +0000 (10:13 +0100)] 
comment describing the Redis command table enhanced

13 years agoFixed bug in getClientInfoString() that was not rendering the N (no flags) special...
antirez [Mon, 21 Nov 2011 15:19:30 +0000 (16:19 +0100)] 
Fixed bug in getClientInfoString() that was not rendering the N (no flags) special flag correctly.

13 years agoClose client connection and log the event when the client input buffer reaches 1GB.
antirez [Mon, 21 Nov 2011 15:17:51 +0000 (16:17 +0100)] 
Close client connection and log the event when the client input buffer reaches 1GB.

13 years agoshow active events in client file descriptor in CLIENT LIST.
antirez [Mon, 21 Nov 2011 15:06:03 +0000 (16:06 +0100)] 
show active events in client file descriptor in CLIENT LIST.

13 years agonew ae.c API to get current events by file descriptor.
antirez [Mon, 21 Nov 2011 15:05:29 +0000 (16:05 +0100)] 
new ae.c API to get current events by file descriptor.

13 years agoadded output list and buffer length, query buffer size, to CLIENT LIST output.
antirez [Mon, 21 Nov 2011 14:54:49 +0000 (15:54 +0100)] 
added output list and buffer length, query buffer size, to CLIENT LIST output.

13 years agofile .prerequisites added to gitignore
antirez [Mon, 21 Nov 2011 14:35:54 +0000 (15:35 +0100)] 
file .prerequisites added to gitignore

13 years agocode generating the CLIENT LIST output refactored to have a function that is able...
antirez [Mon, 21 Nov 2011 14:34:32 +0000 (15:34 +0100)] 
code generating the CLIENT LIST output refactored to have a function that is able to render a single client into a client info string.

13 years agoAdded sdscatsds() to sds.c/h
antirez [Mon, 21 Nov 2011 14:34:00 +0000 (15:34 +0100)] 
Added sdscatsds() to sds.c/h

13 years agoFixed a comment typo in the command table.
antirez [Mon, 21 Nov 2011 09:55:52 +0000 (10:55 +0100)] 
Fixed a comment typo in the command table.

13 years agoFixed a typo in comments.
Jérémy Bethmont [Mon, 21 Nov 2011 01:38:14 +0000 (09:38 +0800)] 
Fixed a typo in comments.

13 years agoMerge remote-tracking branch 'origin/unstable' into unstable
antirez [Fri, 18 Nov 2011 15:30:26 +0000 (16:30 +0100)] 
Merge remote-tracking branch 'origin/unstable' into unstable

13 years agoredis.conf updated to reflect the new scripting timeout semantics.
antirez [Fri, 18 Nov 2011 15:29:22 +0000 (16:29 +0100)] 
redis.conf updated to reflect the new scripting timeout semantics.

13 years agoaof-race test reenabled now that port allocation of the test suite is smarter
antirez [Fri, 18 Nov 2011 14:53:47 +0000 (15:53 +0100)] 
aof-race test reenabled now that port allocation of the test suite is smarter

13 years agoMerge pull request #173 from jasondavies/typo
Salvatore Sanfilippo [Fri, 18 Nov 2011 13:34:56 +0000 (05:34 -0800)] 
Merge pull request #173 from jasondavies/typo

Fix some minor typos.

13 years agoprevent (more) commands from Lua scripts
antirez [Fri, 18 Nov 2011 13:23:38 +0000 (14:23 +0100)] 
prevent (more) commands from Lua scripts

13 years agoNew script timeout semantics and SCRIPT KILL implemented. SHUTDOWN NOSAVE and SHUTDOW...
antirez [Fri, 18 Nov 2011 13:10:48 +0000 (14:10 +0100)] 
New script timeout semantics and SCRIPT KILL implemented. SHUTDOWN NOSAVE and SHUTDOWN SAVE implemented.

13 years agoMerge pull request #193 from lamby/sparc-crash
Salvatore Sanfilippo [Wed, 16 Nov 2011 17:23:19 +0000 (09:23 -0800)] 
Merge pull request #193 from lamby/sparc-crash

Fix crash on SPARC due to improper alignment of allocated memory

13 years agoFix crash on SPARC due to improper alignment of allocated memory
Chris Lamb [Wed, 16 Nov 2011 17:21:16 +0000 (17:21 +0000)] 
Fix crash on SPARC due to improper alignment of allocated memory

I believe that you should be able to drop 'defined(__sun)' completely
from this clause, as Solaris on x86 hardware probably does not have
strict alignment requirements, but I don't have a way to test that.

Thanks to Jurij Smakov <jurij@wooyd.org>.

Signed-off-by: Chris Lamb <lamby@debian.org>
13 years agoDon't force rebuild when params didn't change
Pieter Noordhuis [Wed, 16 Nov 2011 16:34:42 +0000 (08:34 -0800)] 
Don't force rebuild when params didn't change

13 years agomore valgrind (and other archs) friendly testing of floating number related features.
antirez [Wed, 16 Nov 2011 13:40:50 +0000 (14:40 +0100)] 
more valgrind (and other archs) friendly testing of floating number related features.

13 years agovalgrind handles floating point numbers differently for some reason, so using "simple...
antirez [Wed, 16 Nov 2011 12:30:43 +0000 (13:30 +0100)] 
valgrind handles floating point numbers differently for some reason, so using "simpler" numbers to make tests happy.

13 years agoMerge pull request #192 from pietern/makefile
Salvatore Sanfilippo [Wed, 16 Nov 2011 09:29:42 +0000 (01:29 -0800)] 
Merge pull request #192 from pietern/makefile

Add separate clean/distclean targets to Makefile

13 years agoUpdate README on allocators
Pieter Noordhuis [Tue, 15 Nov 2011 21:28:57 +0000 (13:28 -0800)] 
Update README on allocators

13 years agoRebuild source when allocator changes
Pieter Noordhuis [Tue, 15 Nov 2011 21:09:31 +0000 (13:09 -0800)] 
Rebuild source when allocator changes

To do so, the Makefile stores the contents of the MALLOC environment
variable in a file named .make-malloc. When the contents of this file
and the MALLOC variable are not equal, it forces a rebuild of the Redis
source tree.

A side-effect of this change is that choosing an allocator can now be
done using the single MALLOC variable instead of USE_TCMALLOC,
USE_JEMALLOC and so forth. These variables continue to work for
backwards compatibility.

13 years agoRebuild deps/ and src/ when ARCH changes
Pieter Noordhuis [Tue, 15 Nov 2011 20:40:49 +0000 (12:40 -0800)] 
Rebuild deps/ and src/ when ARCH changes

This change moves the build instructions for dependencies to a separate
Makefile in deps/. The ARCH environment variable is stored in a
.make-arch file in the same directory as the Makefile. The contents of
this file is read and compared to the current ARCH, and, on a mismatch
triggers rebuilding the entire source tree.

When file .make-arch exists and matches with ARCH from the environment,
the dependencies are assumed to already be built.

The new "clean" target only cleans the Redis source tree, not its
dependencies. To clear the dependencies as well, the "distclean" target
can be used.

13 years agoUse CCLINK as last argument
Pieter Noordhuis [Tue, 15 Nov 2011 17:39:38 +0000 (09:39 -0800)] 
Use CCLINK as last argument

13 years agoCCLINK already includes ALLOC_LINK
Pieter Noordhuis [Tue, 15 Nov 2011 17:36:13 +0000 (09:36 -0800)] 
CCLINK already includes ALLOC_LINK

13 years agoMerge pull request #181 from redsquirrel/unstable
Salvatore Sanfilippo [Tue, 15 Nov 2011 14:36:53 +0000 (06:36 -0800)] 
Merge pull request #181 from redsquirrel/unstable

Fixing inject: it was failing when there was 1 or >2 sources

13 years agoHINCRBYFLOAT tests
antirez [Tue, 15 Nov 2011 14:26:10 +0000 (15:26 +0100)] 
HINCRBYFLOAT tests

13 years agoHINCRBYFLOAT implemented
antirez [Tue, 15 Nov 2011 14:09:39 +0000 (15:09 +0100)] 
HINCRBYFLOAT implemented

13 years agoMerge branch 'unstable' into incrbyfloat
antirez [Mon, 14 Nov 2011 14:59:56 +0000 (15:59 +0100)] 
Merge branch 'unstable' into incrbyfloat

13 years agotest for the new more strict behavior about number parsing
antirez [Mon, 14 Nov 2011 14:39:55 +0000 (15:39 +0100)] 
test for the new more strict behavior about number parsing

13 years agoINCRBYFLOAT tests
antirez [Mon, 14 Nov 2011 14:37:13 +0000 (15:37 +0100)] 
INCRBYFLOAT tests

13 years agostring to number API is now more strict not accepting spaces before or after the...
antirez [Mon, 14 Nov 2011 14:34:44 +0000 (15:34 +0100)] 
string to number API is now more strict not accepting spaces before or after the number. A few tests converted to match the new error messages using the word float instead of double.

13 years agorewrite INCRBYFLOAT as SETs for AOF/replication
antirez [Mon, 14 Nov 2011 09:15:13 +0000 (10:15 +0100)] 
rewrite INCRBYFLOAT as SETs for AOF/replication

13 years agoINCRBYFLOAT implementation
antirez [Sat, 12 Nov 2011 18:27:35 +0000 (19:27 +0100)] 
INCRBYFLOAT implementation

13 years agoAdded test to make sure Redis evicts expired keys actively (and not just in a lazy...
antirez [Sat, 12 Nov 2011 10:27:38 +0000 (11:27 +0100)] 
Added test to make sure Redis evicts expired keys actively (and not just in a lazy fashion).

13 years agoFixed issues with expire introduced with latest millisecond resolution feature. Many...
antirez [Sat, 12 Nov 2011 00:04:27 +0000 (01:04 +0100)] 
Fixed issues with expire introduced with latest millisecond resolution feature. Many time_t were not converted to long long, and one time() call was not replaced with mstime().

13 years agoset default client timeout to zero inside redis.h as well
antirez [Fri, 11 Nov 2011 16:16:03 +0000 (17:16 +0100)] 
set default client timeout to zero inside redis.h as well

13 years agonew tests for EXPIRE family functions, new millisecond precision, and new millisecond...
antirez [Fri, 11 Nov 2011 14:11:50 +0000 (15:11 +0100)] 
new tests for EXPIRE family functions, new millisecond precision, and new millisecond argument variants.

13 years agohigh resolution expires API modified to use separated commands. AOF transation to...
antirez [Thu, 10 Nov 2011 16:52:02 +0000 (17:52 +0100)] 
high resolution expires API modified to use separated commands. AOF transation to PEXPIREAT of all the expire-style commands fixed.

13 years agoFixing inject: it was failing when there was 1 or >2 sources
Dave Hoover [Thu, 10 Nov 2011 01:06:12 +0000 (19:06 -0600)] 
Fixing inject: it was failing when there was 1 or >2 sources

13 years agoFixed a few typos
antirez [Wed, 9 Nov 2011 20:59:27 +0000 (21:59 +0100)] 
Fixed a few typos

13 years agoFixed bug breaking rdbSaveMillisecondTime() in 32 bit systems. Thanks to @anydot...
antirez [Wed, 9 Nov 2011 17:47:48 +0000 (18:47 +0100)] 
Fixed bug breaking rdbSaveMillisecondTime() in 32 bit systems. Thanks to @anydot (Přemysl Hrubý)

13 years agoTTL, EXPIRE and EXPIREAT now support the milliseconds input/output form
antirez [Wed, 9 Nov 2011 17:05:35 +0000 (18:05 +0100)] 
TTL, EXPIRE and EXPIREAT now support the milliseconds input/output form

13 years agouse "EXPIREAT ... ms" form when rewriting the AOF
antirez [Wed, 9 Nov 2011 16:20:14 +0000 (17:20 +0100)] 
use "EXPIREAT ... ms" form when rewriting the AOF

13 years agoInitial support for key expire times with millisecond resolution. RDB version is...
antirez [Wed, 9 Nov 2011 15:51:19 +0000 (16:51 +0100)] 
Initial support for key expire times with millisecond resolution. RDB version is now 3, new opcoded added for high resolution times. Redis is still able to correctly load RDB version 2. Tests passing but still a work in progress. API to specify milliseconds expires still missing, but the precision of normal expires is now already improved and working.

13 years agodict set/get macros for integers fixed.
antirez [Wed, 9 Nov 2011 12:39:59 +0000 (13:39 +0100)] 
dict set/get macros for integers fixed.

13 years agoadded mstime() to get UNIX time in milliseconds.
antirez [Tue, 8 Nov 2011 23:03:03 +0000 (00:03 +0100)] 
added mstime() to get UNIX time in milliseconds.

13 years agodict.c: added macros to get signed/unsigned integer values from hash
antirez [Tue, 8 Nov 2011 22:59:46 +0000 (23:59 +0100)] 
dict.c: added macros to get signed/unsigned integer values from hash
entry. Field name of hash entry union modified for clarity.

13 years ago32bit build fixed, broken by a previous commit fixing build on Solaris
antirez [Tue, 8 Nov 2011 20:00:52 +0000 (21:00 +0100)] 
32bit build fixed, broken by a previous commit fixing build on Solaris

13 years agodict.c: added macros in dict.h to set signed and unsigned 64 bit values directly...
antirez [Tue, 8 Nov 2011 18:41:29 +0000 (19:41 +0100)] 
dict.c: added macros in dict.h to set signed and unsigned 64 bit values directly inside the hash entry without using additional memory.

13 years agodict.c API names modified to be more coincise and consistent.
antirez [Tue, 8 Nov 2011 16:07:55 +0000 (17:07 +0100)] 
dict.c API names modified to be more coincise and consistent.

13 years agodict.c: added two lower level methods for directly manipulating hash entries. This...
antirez [Tue, 8 Nov 2011 15:57:20 +0000 (16:57 +0100)] 
dict.c: added two lower level methods for directly manipulating hash entries. This is useful in order to set 64 bit integers as values directly inside the hash entry (in order to save memory), without casting, and even in 32 bit builds.

13 years agoMerge branch 'unstable' into ttlres
antirez [Tue, 8 Nov 2011 15:15:08 +0000 (16:15 +0100)] 
Merge branch 'unstable' into ttlres

13 years agouseless double if removed.
antirez [Tue, 8 Nov 2011 10:26:06 +0000 (11:26 +0100)] 
useless double if removed.

13 years agoyet another #if REDIS_MBULK_BIG_ARG removed.
antirez [Tue, 8 Nov 2011 10:24:12 +0000 (11:24 +0100)] 
yet another #if REDIS_MBULK_BIG_ARG removed.

13 years agoMulti bulk optimization for creating big objects without copying data is no longer...
antirez [Tue, 8 Nov 2011 10:22:40 +0000 (11:22 +0100)] 
Multi bulk optimization for creating big objects without copying data is no longer optional, #ifdefs removed. Also debugging messages removed.

13 years agohiredis/redis changes for speed with big payloads: read buffer size set
antirez [Tue, 8 Nov 2011 09:59:35 +0000 (10:59 +0100)] 
hiredis/redis changes for speed with big payloads: read buffer size set
to 16k, request buffer size is no longer destroyed when emtpy and large
(better fix needed). Redis clients static output buffer set to 16k as
well.

13 years agospeed-regression.tcl: command line options to select tests, data size, and number...
antirez [Mon, 7 Nov 2011 16:18:50 +0000 (17:18 +0100)] 
speed-regression.tcl: command line options to select tests, data size, and number of requests.

13 years agospeed-regression.tcl: move tests, data size, requests in global vars that will be...
antirez [Mon, 7 Nov 2011 15:52:55 +0000 (16:52 +0100)] 
speed-regression.tcl: move tests, data size, requests in global vars that will be changed via command line options.

13 years agospeed-regression.tcl script: killing previously tested instance fixed. Don't run...
antirez [Mon, 7 Nov 2011 15:00:15 +0000 (16:00 +0100)] 
speed-regression.tcl script: killing previously tested instance fixed. Don't run if there is already an instance running in the same port.

13 years agospeed-regression.tcl script: obtain test names dynamically.
antirez [Mon, 7 Nov 2011 14:35:01 +0000 (15:35 +0100)] 
speed-regression.tcl script: obtain test names dynamically.

13 years agoredis-benchmark: ability to run selected tests. Better help with examples.
antirez [Mon, 7 Nov 2011 10:29:37 +0000 (11:29 +0100)] 
redis-benchmark: ability to run selected tests. Better help with examples.

13 years agofirst version of the speed regression test
antirez [Fri, 4 Nov 2011 19:45:46 +0000 (20:45 +0100)] 
first version of the speed regression test

13 years agocsv output for redis-benchmark
antirez [Fri, 4 Nov 2011 13:49:24 +0000 (14:49 +0100)] 
csv output for redis-benchmark

13 years agoPING / MSET benchmarks enabled again.
antirez [Fri, 4 Nov 2011 10:20:19 +0000 (11:20 +0100)] 
PING / MSET benchmarks enabled again.

13 years agoA comment moved a few lines for clarity.
antirez [Fri, 4 Nov 2011 10:18:15 +0000 (11:18 +0100)] 
A comment moved a few lines for clarity.

13 years agoAdded a define to set the size threshold to enable the multi bulk parsing big objects...
antirez [Fri, 4 Nov 2011 10:16:11 +0000 (11:16 +0100)] 
Added a define to set the size threshold to enable the multi bulk parsing big objects optimization.

13 years agofurther optimizations for the multi bulk protocol parsing code when big objects are...
antirez [Thu, 3 Nov 2011 14:53:40 +0000 (15:53 +0100)] 
further optimizations for the multi bulk protocol parsing code when big objects are transmitted to Redis.

13 years agooptimized object creation in multi-bulk protocol parsing
antirez [Wed, 2 Nov 2011 16:30:19 +0000 (17:30 +0100)] 
optimized object creation in multi-bulk protocol parsing

13 years agosdsIncrLen() / sdsMakeRoomFor() used to avoid copying to intermediate buffer while...
antirez [Wed, 2 Nov 2011 15:52:45 +0000 (16:52 +0100)] 
sdsIncrLen() / sdsMakeRoomFor() used to avoid copying to intermediate buffer while reading the client query.

13 years agotesthelp.h now exits with retcode 1 on failed tests.
antirez [Wed, 2 Nov 2011 15:52:10 +0000 (16:52 +0100)] 
testhelp.h now exits with retcode 1 on failed tests.

13 years agoI/O buffer length enlarged
antirez [Wed, 2 Nov 2011 15:51:33 +0000 (16:51 +0100)] 
I/O buffer length enlarged

13 years agosdsMakeRoomFor() exposed as public API. sdsIncrLen() added. Both the changes make...
antirez [Wed, 2 Nov 2011 15:50:59 +0000 (16:50 +0100)] 
sdsMakeRoomFor() exposed as public API. sdsIncrLen() added. Both the changes make it possible to copy stuff from a system call to an sds buffer without the need of an additional buffer and copying overhead.

13 years agoadded a comment to sdsMakeRoomFor() to make it clear what the function actually does.
antirez [Wed, 2 Nov 2011 15:09:14 +0000 (16:09 +0100)] 
added a comment to sdsMakeRoomFor() to make it clear what the function actually does.

13 years agoadded an union in the dict.h structure to store 64 bit integers directly into hash...
antirez [Wed, 2 Nov 2011 14:28:45 +0000 (15:28 +0100)] 
added an union in the dict.h structure to store 64 bit integers directly into hash table entries.

13 years agoFix minor typos.
Jason Davies [Tue, 1 Nov 2011 19:57:51 +0000 (19:57 +0000)] 
Fix minor typos.

13 years agoScript max execution time test disabled for now since it is no longer enforced.
antirez [Mon, 31 Oct 2011 15:09:07 +0000 (16:09 +0100)] 
Script max execution time test disabled for now since it is no longer enforced.

13 years agoremoved the vmpointer structure that is no longer user in Redis >= 2.5.x
antirez [Mon, 31 Oct 2011 14:47:12 +0000 (15:47 +0100)] 
removed the vmpointer structure that is no longer user in Redis >= 2.5.x

13 years agouse timeout 0 by default, as this is a common source of problems.
antirez [Mon, 31 Oct 2011 14:43:09 +0000 (15:43 +0100)] 
use timeout 0 by default, as this is a common source of problems.

13 years agoMerge pull request #170 from bnoordhuis/fix-sunos-build
Salvatore Sanfilippo [Mon, 31 Oct 2011 10:21:09 +0000 (03:21 -0700)] 
Merge pull request #170 from bnoordhuis/fix-sunos-build

build: fix sunos build, compile lua with __C99FEATURES__=1

13 years agoadded more clarifications in redis.conf about ther right value to set as replication...
antirez [Mon, 31 Oct 2011 10:17:21 +0000 (11:17 +0100)] 
added more clarifications in redis.conf about ther right value to set as replication timeout.

13 years ago1fe4cd5
antirez [Mon, 31 Oct 2011 10:14:24 +0000 (11:14 +0100)] 
1fe4cd5

13 years agofixed typo in comments
Herbert G. Fischer [Tue, 18 Oct 2011 21:01:30 +0000 (19:01 -0200)] 
fixed typo in comments

13 years ago7c6da73
antirez [Mon, 31 Oct 2011 10:13:28 +0000 (11:13 +0100)] 
7c6da73

13 years agomaxclients configuration is now implemented dealing with the actual process rlimits...
antirez [Mon, 31 Oct 2011 09:48:41 +0000 (10:48 +0100)] 
maxclients configuration is now implemented dealing with the actual process rlimits. Setting maxclients to 0 no longer makes sense and is now invalid, the new default is 10000.
See issue #162 for more information.

13 years agoIt is now possible to disable password authentication via CONFIG SET. Thanks to Jan...
antirez [Mon, 31 Oct 2011 08:57:06 +0000 (09:57 +0100)] 
It is now possible to disable password authentication via CONFIG SET. Thanks to Jan Oberst. This closes issue #171.

13 years agobuild: fix sunos build, compile lua with __C99FEATURES__=1
Ben Noordhuis [Sun, 30 Oct 2011 03:20:00 +0000 (03:20 +0000)] 
build: fix sunos build, compile lua with __C99FEATURES__=1

13 years agoFixed a memory leak in redis-cli.c
antirez [Fri, 28 Oct 2011 15:43:04 +0000 (17:43 +0200)] 
Fixed a memory leak in redis-cli.c