- 12 5月, 2012 2 次提交
-
-
由 antirez 提交于
-
由 antirez 提交于
If a large amonut of keys are all expiring about at the same time, the "active" expired keys collection cycle used to block as far as the percentage of already expired keys was >= 25% of the total population of keys with an expire set. This could block the server even for many seconds in order to reclaim memory ASAP. The new algorithm uses at max a small amount of milliseconds per cycle, even if this means reclaiming the memory less promptly it also means a more responsive server.
-
- 02 5月, 2012 1 次提交
-
-
由 antirez 提交于
We used to reply -ERR ... message ..., now the reply is instead -MASTERDOWN ... message ... so that it can be distinguished easily by the other error conditions.
-
- 27 4月, 2012 1 次提交
-
-
由 antirez 提交于
This commit reverts most of c5757662, in order to use back main stack for signal handling. The main reason is that otherwise it is completely pointless that we do a lot of efforts to print the stack trace on crash, and the content of the stack and registers as well. Using an alternate stack broken this feature completely.
-
- 20 4月, 2012 1 次提交
-
-
由 antirez 提交于
-
- 18 4月, 2012 1 次提交
-
-
由 antirez 提交于
1) Don't accept maxclients set to < 0 2) Allow maxclients < 1024, it is useful for testing.
-
- 13 4月, 2012 3 次提交
-
-
由 antirez 提交于
After considering the interaction between ability to delcare globals in scripts using the 'global' function, and the complexities related to hanlding replication and AOF in a sane way with globals AND ability to turn protection On and Off, we reconsidered the design. The new design makes clear that there is only one good way to write Redis scripts, that is not using globals. In the rare cases state must be retained across calls a Redis key can be used.
-
由 antirez 提交于
-
由 antirez 提交于
-
- 11 4月, 2012 1 次提交
-
-
由 antirez 提交于
Check write(2) return value to avoid warnings, because in this context failing write is not critical.
-
- 10 4月, 2012 1 次提交
-
-
由 antirez 提交于
It is now possible to enable/disable RDB checksum computation from redis.conf or via CONFIG SET/GET. Also CONFIG SET support added for rdbcompression as well.
-
- 08 4月, 2012 1 次提交
-
-
由 antirez 提交于
-
- 07 4月, 2012 1 次提交
-
-
由 antirez 提交于
-
- 05 4月, 2012 5 次提交
-
-
由 Premysl Hruby 提交于
-
由 antirez 提交于
Structure field controlling the INFO field master_link_down_since_seconds initialized correctly to avoid strange INFO output at startup when a slave has yet to connect to its master.
-
由 antirez 提交于
-
由 antirez 提交于
-
由 antirez 提交于
Print milliseconds of the current second in log lines timestamps. Sometimes precise timing is very important for debugging.
-
- 03 4月, 2012 1 次提交
-
-
由 antirez 提交于
When the user-provided 'maxclients' value is too big for the max number of files we can open, at least try to search the max the OS is allowing (in steps of 256 filedes).
-
- 30 3月, 2012 1 次提交
-
-
由 Joseph Jang 提交于
occurs when two or more dbs are replicated and at least one of them is >db10
-
- 28 3月, 2012 4 次提交
-
-
由 antirez 提交于
-
由 antirez 提交于
-
由 antirez 提交于
-
由 Premysl Hruby 提交于
-
- 25 3月, 2012 1 次提交
-
-
由 antirez 提交于
This new field counts all the times Redis is configured with AOF enabled and fsync policy 'everysec', but the previous fsync performed by the background thread was not able to complete within two seconds, forcing Redis to perform a write against the AOF file while the fsync is still in progress (likely a blocking operation).
-
- 24 3月, 2012 1 次提交
-
-
由 antirez 提交于
-
- 22 3月, 2012 3 次提交
-
-
由 antirez 提交于
-
由 antirez 提交于
DEBUG should not be flagged as w otherwise we can not call DEBUG DIGEST and other commands against read only slaves.
-
由 antirez 提交于
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.
-
- 20 3月, 2012 1 次提交
-
-
由 antirez 提交于
-
- 19 3月, 2012 2 次提交
- 18 3月, 2012 1 次提交
-
-
由 antirez 提交于
-
- 16 3月, 2012 1 次提交
-
-
由 antirez 提交于
Use a simple protocol between clientsCron() and helper functions to understand if the client is still valind and clientsCron() should continue processing or if the client was freed and we should continue with the next one.
-
- 14 3月, 2012 3 次提交
- 10 3月, 2012 1 次提交
-
-
由 antirez 提交于
-
- 08 3月, 2012 2 次提交
-
-
由 antirez 提交于
-
由 antirez 提交于
The Run ID is a field that identifies a single execution of the Redis server. It can be useful for many purposes as it makes easy to detect if the instance we are talking about is the same, or if it is a different one or was rebooted. An application of run_id will be in the partial synchronization of replication, where a slave may request a partial sync from a given offset only if it is talking with the same master. Another application is in failover and monitoring scripts.
-