- 26 Jun, 2013 19 commits
-
-
antirez authored
Clients using SYNC to replicate are older implementations, such as redis-cli --slave, and are not designed to acknowledge the master with REPLCONF ACK commands, so we don't have any feedback and should not disconnect them on timeout.
-
antirez authored
-
antirez authored
-
antirez authored
-
antirez authored
-
antirez authored
-
antirez authored
-
antirez authored
-
antirez authored
It should be called just one time at startup and not every time the Lua scripting engine is re-initialized, otherwise memory is leaked.
-
antirez authored
This commit uses the Replication Script Cache in order to avoid translating EVALSHA into EVAL whenever possible for both the AOF and slaves.
-
antirez authored
This code is only responsible to take an LRU-evicted fixed length cache of SHA1 that we are sure all the slaves received. In this commit only the implementation is provided, but the Redis core does not use it to actually send EVALSHA to slaves when possible.
-
antirez authored
The old REDIS_CMD_FORCE_REPLICATION flag was removed from the implementation of Redis, now there is a new API to force specific executions of a command to be propagated to AOF / Replication link: void forceCommandPropagation(int flags); The new API is also compatible with Lua scripting, so a script that will execute commands that are forced to be propagated, will also be propagated itself accordingly even if no change to data is operated. As a side effect, this new design fixes the issue with scripts not able to propagate PUBLISH to slaves (issue #873).
-
antirez authored
The result is an empty list but it is handy to call it programmatically.
-
antirez authored
Currently it implements three subcommands: PUBSUB CHANNELS [<pattern>] List channels with non-zero subscribers. PUBSUB NUMSUB [channel_1 ...] List number of subscribers for channels. PUBSUB NUMPAT Return number of subscribed patterns.
-
antirez authored
-
YAMAMOTO Takashi authored
time_t is always 64bit on recent versions of NetBSD.
-
YAMAMOTO Takashi authored
SUSv3 says that: The useconds argument shall be less than one million. If the value of useconds is 0, then the call has no effect. and actually NetBSD's implementation rejects such a value with EINVAL. use nanosleep which has no such a limitation instead.
-
YAMAMOTO Takashi authored
NetBSD-current's libc has a function named popcount. hiding these extensions using feature macros is not possible because redis uses other extensions covered by the same feature macro. eg. inet_aton
-
YAMAMOTO Takashi authored
on NetBSD, defining _XOPEN_SOURCE hides extensions like inet_aton, strcasecmp, etc.
-
- 20 Jun, 2013 2 commits
-
-
Jan-Erik Rediger authored
-
antirez authored
Sentinel was not able to detect slaves when connected to a very recent version of Redis master since a previos non-backward compatible change to INFO broken the parsing of the slaves ip:port INFO output. This fixes issue #1164
-
- 19 Jun, 2013 3 commits
- 18 Jun, 2013 4 commits
-
-
antirez authored
lua_pcall error handler now formats errors in a way more similar to luaPushError() so that errors generated in different contexts look alike.
-
antirez authored
When calling Lua scripts we try to report not just the error but information about the code line causing the error.
-
Marc-Antoine Perennou authored
Signed-off-by:
Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
-
ioddly authored
-
- 04 Jun, 2013 1 commit
-
-
antirez authored
-
- 31 May, 2013 5 commits
-
-
antirez authored
-
antirez authored
-
antirez authored
This way just after the CONFIG SET enabling the min-slaves feature it is possible to write to the database without delays.
-
antirez authored
When min-slaves-to-write feature is active, this field reports the number of slaves considered good (online state, lag within the specified range).
-
antirez authored
-
- 30 May, 2013 5 commits
- 29 May, 2013 1 commit
-
-
antirez authored
-