]> git.saurik.com Git - redis.git/log
redis.git
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 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

13 years agosds.c single quotes support
antirez [Fri, 28 Oct 2011 15:31:40 +0000 (17:31 +0200)] 
sds.c single quotes support

13 years agouse the more generic -BUSY error for idle scripts
antirez [Thu, 27 Oct 2011 18:56:12 +0000 (20:56 +0200)] 
use the more generic -BUSY error for idle scripts

13 years agoIf a Lua script executes for more time than the max time specified in the configurati...
antirez [Thu, 27 Oct 2011 12:49:10 +0000 (14:49 +0200)] 
If a Lua script executes for more time than the max time specified in the configuration Redis will log a warning, and will start accepting queries (re-entering the event loop), returning -SLOWSCRIPT error for all the commands but SHUTDOWN that remains callable.

13 years agoSet errno to 0 before calling strtol.
Nathan Florea [Fri, 21 Oct 2011 01:20:58 +0000 (18:20 -0700)] 
Set errno to 0 before calling strtol.

13 years agoClear the AOF rewrite scheduled flag once an AOF rewrite is triggered. Fix for issue...
antirez [Wed, 26 Oct 2011 10:53:30 +0000 (12:53 +0200)] 
Clear the AOF rewrite scheduled flag once an AOF rewrite is triggered. Fix for issue #161, probably fixing 159 as well.

13 years agoDon't timeout scripts if the instance is a slave.
antirez [Tue, 25 Oct 2011 17:54:10 +0000 (19:54 +0200)] 
Don't timeout scripts if the instance is a slave.

13 years agoSCRIPT LOAD now returns the SHA1 instead of +OK
antirez [Tue, 25 Oct 2011 12:46:15 +0000 (14:46 +0200)] 
SCRIPT LOAD now returns the SHA1 instead of +OK

13 years agoLau scripts default max execution time set to 5 seconds.
antirez [Tue, 25 Oct 2011 10:10:15 +0000 (12:10 +0200)] 
Lau scripts default max execution time set to 5 seconds.

13 years agoFixes for the scripting refactoring and new commands. Tests for the new features.
antirez [Tue, 25 Oct 2011 09:19:15 +0000 (11:19 +0200)] 
Fixes for the scripting refactoring and new commands. Tests for the new features.

13 years agoSCRIPT LOAD implemented, scripting eval command refactoring.
antirez [Tue, 25 Oct 2011 08:25:59 +0000 (10:25 +0200)] 
SCRIPT LOAD implemented, scripting eval command refactoring.

13 years agoSCRIPT command for introspection and control of the scripting environment.
antirez [Mon, 24 Oct 2011 20:47:00 +0000 (22:47 +0200)] 
SCRIPT command for introspection and control of the scripting environment.

13 years agoBetter installation info inside README file.
antirez [Sun, 23 Oct 2011 10:28:31 +0000 (12:28 +0200)] 
Better installation info inside README file.

13 years agoremoved a few entries for gitignore
antirez [Sun, 23 Oct 2011 10:16:07 +0000 (12:16 +0200)] 
removed a few entries for gitignore

13 years agoFixed a few warnings compiling on Linux.
antirez [Sun, 23 Oct 2011 08:57:01 +0000 (10:57 +0200)] 
Fixed a few warnings compiling on Linux.

13 years agoA past commit removed the inclusion of redis.h from rdb.c, completely breaking 32...
antirez [Sun, 23 Oct 2011 08:42:16 +0000 (10:42 +0200)] 
A past commit removed the inclusion of redis.h from rdb.c, completely breaking 32 bit builds under Linux.

13 years agoRedis.call is now split into two variants of the same function. Redis.call will raise...
antirez [Thu, 20 Oct 2011 14:02:23 +0000 (16:02 +0200)] 
Redis.call is now split into two variants of the same function. Redis.call will raise an error by default. Redis.pcall will return the error object instead.

13 years agoMerge branch 'unstable' of github.com:/antirez/redis into unstable
antirez [Thu, 20 Oct 2011 09:18:10 +0000 (11:18 +0200)] 
Merge branch 'unstable' of github.com:/antirez/redis into unstable

13 years agouse signalModifiedKey to set the key as dirty in the context of WATCH for both MIGRAT...
antirez [Thu, 20 Oct 2011 09:17:30 +0000 (11:17 +0200)] 
use signalModifiedKey to set the key as dirty in the context of WATCH for both MIGRATE and RESTORE.

13 years agoMerge pull request #147 from janoberst/unstable
Salvatore Sanfilippo [Thu, 20 Oct 2011 07:53:22 +0000 (00:53 -0700)] 
Merge pull request #147 from janoberst/unstable

Cleaned up redis root directory a tiny bit and changed links to github issues

13 years agoLua cjson include paths now use the local includes.
antirez [Wed, 19 Oct 2011 14:57:54 +0000 (16:57 +0200)] 
Lua cjson include paths now use the local includes.

13 years agoMerge remote-tracking branch 'origin/unstable' into unstable
antirez [Wed, 19 Oct 2011 14:42:35 +0000 (16:42 +0200)] 
Merge remote-tracking branch 'origin/unstable' into unstable

13 years agoJSON support for Lua scripting, based on work from @lp, thanks!. We are using the...
antirez [Wed, 19 Oct 2011 14:42:10 +0000 (16:42 +0200)] 
JSON support for Lua scripting, based on work from @lp, thanks!. We are using the good and fast cjson by Mark Pulford.

13 years agoSwitched issues URL to Github in BUGS
Jan Oberst [Tue, 18 Oct 2011 18:28:23 +0000 (14:28 -0400)] 
Switched issues URL to Github in BUGS

13 years agoActually let's just cpy over the README from stable. Missed the updated version there.
Jan Oberst [Tue, 18 Oct 2011 18:28:07 +0000 (14:28 -0400)] 
Actually let's just cpy over the README from stable. Missed the updated version there.

13 years agoCleaned up redis root directory and changed links for redis.io and github issues...
Jan Oberst [Tue, 18 Oct 2011 18:14:16 +0000 (14:14 -0400)] 
Cleaned up redis root directory and changed links for redis.io and github issues and pull requests

13 years agoMerge pull request #146 from smly/fixed-redis-check-dump
Salvatore Sanfilippo [Tue, 18 Oct 2011 12:13:25 +0000 (05:13 -0700)] 
Merge pull request #146 from smly/fixed-redis-check-dump

Memory leak in redis-check-dump

13 years agoFixed a small memory leak I found with valgrind
smly [Tue, 18 Oct 2011 11:18:26 +0000 (20:18 +0900)] 
Fixed a small memory leak I found with valgrind

13 years agoReturn from syncWithMaster() ASAP if the event fired but the instance is no longer...
antirez [Tue, 18 Oct 2011 09:09:32 +0000 (11:09 +0200)] 
Return from syncWithMaster() ASAP if the event fired but the instance is no longer a slave. This should fix Issue #145.

13 years agoFirst implementation of the ASKING command. Semantics still to verify.
antirez [Mon, 17 Oct 2011 15:35:23 +0000 (17:35 +0200)] 
First implementation of the ASKING command. Semantics still to verify.

13 years agoMIGRATE +NOKEY error was missing the final CRLF causing a protocol error.
antirez [Mon, 17 Oct 2011 14:44:08 +0000 (16:44 +0200)] 
MIGRATE +NOKEY error was missing the final CRLF causing a protocol error.

13 years agoFixed a typo causing segfault on MIGRATE
antirez [Mon, 17 Oct 2011 14:39:05 +0000 (16:39 +0200)] 
Fixed a typo causing segfault on MIGRATE

13 years agoRegression test for issue #142 added
antirez [Mon, 17 Oct 2011 08:40:11 +0000 (10:40 +0200)] 
Regression test for issue #142 added

13 years agoFLUSHALL now prevents rdbSave() from resetting the dirty counter, so that the command...
antirez [Mon, 17 Oct 2011 08:28:57 +0000 (10:28 +0200)] 
FLUSHALL now prevents rdbSave() from resetting the dirty counter, so that the command will get replicated and put inside the AOF. This fixes issue #142

13 years agoFLUSHALL will only perform a blocking SAVE if RDB persistence is configured.
antirez [Mon, 17 Oct 2011 08:25:35 +0000 (10:25 +0200)] 
FLUSHALL will only perform a blocking SAVE if RDB persistence is configured.

13 years agoExit with Fatal error at startup if the RDB file signature or version is wrong.
antirez [Fri, 14 Oct 2011 14:59:32 +0000 (16:59 +0200)] 
Exit with Fatal error at startup if the RDB file signature or version is wrong.
Ref: issue #103

13 years agoredis-check-dump: RDB version 2 now supported.
antirez [Fri, 14 Oct 2011 14:52:11 +0000 (16:52 +0200)] 
redis-check-dump: RDB version 2 now supported.

13 years agoMore informative error when DEBUG RELOAD fails.
antirez [Fri, 14 Oct 2011 12:30:41 +0000 (14:30 +0200)] 
More informative error when DEBUG RELOAD fails.

13 years agoredis-trib: fix for a slot allocation bug.
antirez [Thu, 13 Oct 2011 13:16:03 +0000 (15:16 +0200)] 
redis-trib: fix for a slot allocation bug.

13 years agosmall comment added
antirez [Thu, 13 Oct 2011 12:51:29 +0000 (14:51 +0200)] 
small comment added

13 years agoFix for issue #132. Now AUTH raises an error if no server password is configured.
antirez [Mon, 10 Oct 2011 20:21:17 +0000 (22:21 +0200)] 
Fix for issue #132. Now AUTH raises an error if no server password is configured.

13 years agoMerge pull request #126 from florean/unstable
Salvatore Sanfilippo [Mon, 10 Oct 2011 20:05:16 +0000 (13:05 -0700)] 
Merge pull request #126 from florean/unstable

Unlink Unix socket file on shutdown

13 years agoAdded a config directive for a Unix socket mask
Nathan Florea [Mon, 10 Oct 2011 18:21:15 +0000 (11:21 -0700)] 
Added a config directive for a Unix socket mask

Added a configuration directive to allow a user to specify the
permissions to be granted to the Unix socket file.  I followed
the format Pieter and Salvatore discusses in issue #85 (
https://github.com/antirez/redis/issues/85).

13 years agoIssue #131. stime/utime reported in INFO was inverted. Fixed thanks to Didier Spezia.
antirez [Mon, 10 Oct 2011 13:29:36 +0000 (15:29 +0200)] 
Issue #131. stime/utime reported in INFO was inverted. Fixed thanks to Didier Spezia.

13 years agoFix for bug #128 about the RENAME command.
antirez [Mon, 10 Oct 2011 13:21:19 +0000 (15:21 +0200)] 
Fix for bug #128 about the RENAME command.

13 years agoAdded two new tests for RENAME, currently both will fail because of bug #128.
antirez [Mon, 10 Oct 2011 10:01:13 +0000 (12:01 +0200)] 
Added two new tests for RENAME, currently both will fail because of bug #128.

13 years agoUnlink Unix socket file on shutdown
Nathan Florea [Sun, 9 Oct 2011 07:46:03 +0000 (00:46 -0700)] 
Unlink Unix socket file on shutdown

13 years agonot used parameter for redisLog() removed. Error message grammar fixed.
antirez [Sat, 8 Oct 2011 08:58:57 +0000 (10:58 +0200)] 
not used parameter for redisLog() removed. Error message grammar fixed.
Thanks to @ardsrk.

13 years agoRedis Cluster: process node to node CLUSTERMSG_TYPE_PUBLISH messages and send it...
antirez [Fri, 7 Oct 2011 14:34:16 +0000 (16:34 +0200)] 
Redis Cluster: process node to node CLUSTERMSG_TYPE_PUBLISH messages and send it to the local clients.

13 years agopropagate PUBLISH messages using the redis cluster nodes bus. Still need to process...
antirez [Fri, 7 Oct 2011 13:37:34 +0000 (15:37 +0200)] 
propagate PUBLISH messages using the redis cluster nodes bus. Still need to process the incoming packets of that type. Work in progress.

13 years agoTotally hackish and dirty, but working, support for Redis Cluster in redis-cli
antirez [Wed, 5 Oct 2011 17:55:33 +0000 (19:55 +0200)] 
Totally hackish and dirty, but working, support for Redis Cluster in redis-cli

13 years agoA node can populate a slot if a message from a trusted slot is received claiming...
antirez [Wed, 5 Oct 2011 15:40:02 +0000 (17:40 +0200)] 
A node can populate a slot if a message from a trusted slot is received claiming ownership of this slot, that is currently empty or served by a node in FAIL state. However this feature was broken since calling clusterAddSlot() was not enough as the slot bit is already set in the node that pong us. We need to directly alter the table. This commit fixes the issue.

13 years agoMerge remote-tracking branch 'origin/unstable' into unstable
antirez [Wed, 5 Oct 2011 14:08:54 +0000 (16:08 +0200)] 
Merge remote-tracking branch 'origin/unstable' into unstable

13 years agoCONFIG SET/GET support for loglevel
antirez [Wed, 5 Oct 2011 14:08:35 +0000 (16:08 +0200)] 
CONFIG SET/GET support for loglevel

13 years agojust minor aesthetic changes to cluster.c
antirez [Wed, 5 Oct 2011 14:02:45 +0000 (16:02 +0200)] 
just minor aesthetic changes to cluster.c