]> git.saurik.com Git - redis.git/commit - src/multi.c
Support for read-only slaves. Semantical fixes.
authorantirez <antirez@gmail.com>
Tue, 20 Mar 2012 16:32:48 +0000 (17:32 +0100)
committerantirez <antirez@gmail.com>
Tue, 20 Mar 2012 16:32:48 +0000 (17:32 +0100)
commitf3fd419fc95e78818f9eeef15eb2d2e5a60bfbbb
tree03e75d79523ef181aaf689de2ea4d0e78af73169
parent7a0c72f34550c3811324464661f1b463ccfd362b
Support for read-only slaves. Semantical fixes.

This commit introduces support for read only slaves via redis.conf and CONFIG GET/SET commands. Also various semantical fixes are implemented here:

1) MULTI/EXEC with only read commands now work where the server is into a state where writes (or commands increasing memory usage) are not allowed. Before this patch everything inside a transaction would fail in this conditions.

2) Scripts just calling read-only commands will work against read only
slaves, when the server is out of memory, or when persistence is into an
error condition. Before the patch EVAL always failed in this condition.
redis.conf
src/config.c
src/multi.c
src/redis.c
src/redis.h
src/scripting.c