summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* version.h updated to 2.8.15.2.8.15antirez2014-09-121-1/+1
|
* Redis 2.8.15.antirez2014-09-121-0/+24
|
* Sentinel sentinelGetLeader() top comment improved.antirez2014-09-111-3/+3
|
* Sentinel: fix computation of total number of votes.antirez2014-09-111-2/+2
| | | | | | | | | | | The code to check the number of voters was never updated to follow the new Sentinel specification, so the number of voters was computed using only the set of Sentinels that provided a vote. This means that there is a changing majority on partitions, even if usually the issue is not triggered because of the configured quorum check (what was broken was the other implicit check that requires anyway half of the known sentinels to agree in order to start a failover).
* luaRedisGenericCommand() cached argv handling simplified.antirez2014-09-101-4/+2
| | | | As discussed in issue #1945.
* Limit the *SCAN command `dictScan` iterationsxiaost2014-09-101-1/+8
| | | | | *SCAN will cause redis server to hang for seconds after millions of keys was deleted by SCAN/DEL pairs
* Sentinel: don't set announce-ip if is empty.antirez2014-09-101-1/+2
|
* Sentinel: clarify announce-ip/port options in sentinel.conf.antirez2014-09-101-3/+18
|
* Sentinel: announce ip/port changes + rewrite.antirez2014-09-102-19/+35
| | | | | | The original implementation was modified in order to allow to selectively announce a different IP or port, and to rewrite the two options in the config file after a rewrite.
* sentinel: Decouple bind address from address sent to other sentinelsDara Kong2014-09-102-3/+31
| | | | | | | There are instances such as EC2 where the bind address is private (behind a NAT) and cannot be accessible from WAN. https://groups.google.com/d/msg/redis-db/PVVvjO4nMd0/P3oWC036v3cJ
* Tests for aof-load-truncated = yes.antirez2014-09-081-1/+27
|
* AOF tests fixed turning aof-load-truncated to no.antirez2014-09-081-6/+6
| | | | | | | When aof-load-truncated option was introduced, with a default of "yes", the past behavior of the server to abort with trunncated AOF changed, so we need to explicitly configure the tests to abort with truncated AOF by setting the option to no.
* Make aof-load-truncated option actually configurable.antirez2014-09-082-1/+38
|
* Correct cleanup when aborting AOF loading.antirez2014-09-081-8/+29
| | | | | | | Because of the new ability to start with a truncated AOF, we need to correctly release all the memory on EOF error. Otherwise there is a small leak, that is not really a problem, but causes a false positive in the tests that detect memory leaks.
* AOF ability to load truncated files.antirez2014-09-083-3/+14
|
* Test AOF format error detection.antirez2014-09-081-0/+25
|
* AOF loading: split handling of format errors from unexpected EOF.antirez2014-09-082-8/+11
|
* Return empty string if GETRANGE of empty stringMatt Stancliff2014-09-041-1/+1
| | | | | | | Previously, GETRANGE of a key containing nothing ("") would allocate a large (size_t)-1 return value causing crashes on 32bit builds when it tried to allocate the 4 GB return string.
* Increase size of range request in getrangeMatt Stancliff2014-09-041-4/+4
| | | | | | | | | | 32 bit builds don't have a big enough long to capture the same range as a 64 bit build. If we use "long long" we get proper size limits everywhere. Also updates size of unsigned comparison to fit new size of `end`. Fixes #1981
* Redis 2.8.14.2.8.14antirez2014-09-012-1/+35
|
* Sentinel: Abort Hello quicker if not connectedMatt Stancliff2014-09-011-1/+2
| | | | | We can save a little work by aborting when we enter the function if we're disconnected.
* Add regression test for issue #1939Paddy Byers2014-09-011-0/+12
|
* Store the length of the static argv when first allocated.Paddy Byers2014-09-011-0/+1
|
* Fix dictRehash assert casting type.antirez2014-08-271-1/+1
| | | | Also related to #1929.
* Cast to right type in dictNext().antirez2014-08-271-1/+1
| | | | This closes issue #1929, the other part was fixed in the context of issue
* Use long for rehash and iterator index in dict.h.antirez2014-08-271-3/+5
| | | | | | | | This allows to support datasets with more than 2 billion of keys (possible in very large memory instances, this bug was actually reported). Closes issue #1814.
* Missing va_end also added in hiredis copy of sds.c.antirez2014-08-271-0/+1
|
* Missing assert removal from sdsIncrLen()Mariano Pérez Rodríguez2014-08-271-1/+0
| | | | Companion for 8eeb1802ec42682a614a5ebca318a0ba44ca7c03, but dealing with hiredis.
* No longer useful assert removed from sdsIncrLen().antirez2014-08-271-1/+0
|
* Fix redis-benchmark abort outputMatt Stancliff2014-08-271-1/+1
|
* Deny CLIENT command in scriptsMatt Stancliff2014-08-271-1/+1
| | | | | | | | | | We don't want scripts doing CLIENT SETNAME or CLIENT KILL or CLIENT LIST or CLIENT PAUSE. Originally reported by Chris Wj then proper action inspired by Itamar Haber. Reference: https://groups.google.com/forum/#!topic/redis-db/09B2EYwyVgk
* redis-benchmark: Remove unused bufferMatt Stancliff2014-08-271-9/+0
| | | | | | | | | | This just deletes old code that didn't get removed when logic changed. We were setting offsets that never got read anywhere. Since clients are now just cloned, we don't need to track per-client buffer offsets anywhere because they are all the same from the original client.
* redis-benchmark: add auth optionCharSyam2014-08-271-0/+14
| | | | Closes #1097
* Rename two 'buf' vars to 'ip' for better clarityMatt Stancliff2014-08-271-5/+5
| | | | | Clearly ip[32] is wrong, but it's less clear that buf[32] was wrong without further reading.
* Sentinel: fix bufsize to support IPv6 addressEiichi Sato2014-08-271-2/+2
| | | | Closes #1914
* Use correct github url to find commands.jsonJan-Erik Rediger2014-08-271-1/+1
| | | | | | | | | | Once this is merged: - merge the latest changes to commands.json in antirez/redis-doc - re-run: utils/generate-command-help.rb > src/help.h Then we'll have nice and easy tab-completed help in redis-cli again. Closes #1909
* Stop tests from leaving a black backgroundMariano Pérez Rodríguez2014-08-271-1/+1
| | | | | | | | Uses ANSI "default background" color code after closing tests so any non-black terminals don't remain polluted. Fixes #1649 Closes #1912
* Sentinel: Reject config from STDINMatt Stancliff2014-08-271-0/+7
| | | | | | | Sentinel needs to die with a more accurate error message when attempted to open a config from STDIN. See: https://groups.google.com/forum/#!topic/redis-db/sYx7VNMWaNM
* Remove unused global variableMatt Stancliff2014-08-271-1/+0
| | | | It has an important name, but nothing uses it...
* Fix invalid expire error for SET family commands.antirez2014-08-271-1/+1
|
* Remove unused functionCong Ding2014-08-271-6/+0
| | | | Closes #878
* Extend range of bytesToHuman to TB and PBDavid Palm2014-08-271-0/+9
| | | | | | | Also adds a fallthrough case for when given large values (like overflow numbers of 2^64 by mistake). Closes #858
* Add error check for writing RDB checksumyoav2014-08-271-1/+1
| | | | Closes #857
* redis-cli: fix prompt after shutdown commandDov Murik2014-08-271-1/+4
| | | | | Fix redis-cli prompt to state "not connected" after a SHUTDOWN command is sent.
* Clarify argument to dict macroxiaoyu2014-08-271-1/+1
| | | | | | d is more clear because the type of argument is dict not dictht Closes #513
* Fix undefined behavior in ll2string().antirez2014-08-271-1/+5
| | | | | The bug was found by @CAFxX, thanks! See issue #1940.
* Remove warnings and improve integer sign correctness.antirez2014-08-2714-42/+53
|
* Add -W to compilation flags.antirez2014-08-271-1/+1
|
* Use unsigned integers in SDS header.antirez2014-08-274-9/+15
| | | | This raises the max string to 4GB without any downside.
* va_copy must be matched by va_endPieter Noordhuis2014-08-271-0/+1
| | | | | | Hat tip to @rfuchs. See: https://github.com/redis/hiredis/pull/178. Fixes #1187