| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
| |
|
|\ |
|
| |\
| | |
| | | |
Increase size of range request in getrange
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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.
|
| |/
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| | |
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.
|
|/
|
|
|
|
|
| |
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
|
|
|
|
|
| |
We can save a little work by aborting when we enter the function
if we're disconnected.
|
| |
|
| |
|
|
|
|
| |
Also related to #1929.
|
|
|
|
| |
This closes issue #1929, the other part was fixed in the context of issue
|
|
|
|
|
|
|
|
| |
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 assert removal from sdsIncrLen()
|
|/
|
| |
Companion for 8eeb1802ec42682a614a5ebca318a0ba44ca7c03, but dealing with hiredis.
|
| |
|
| |
|
|\ |
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| |
| |
| |
| | |
Closes #1097
|
| |
| |
| |
| |
| | |
Clearly ip[32] is wrong, but it's less clear that buf[32] was wrong
without further reading.
|
| |
| |
| |
| | |
Closes #1914
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
| |
| |
| |
| |
| |
| |
| |
| | |
Uses ANSI "default background" color code after closing tests
so any non-black terminals don't remain polluted.
Fixes #1649
Closes #1912
|
| |
| |
| |
| |
| |
| |
| | |
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
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This commit adds a size check after initial config
line parsing to make sure we have *at least* 8 arguments
per line.
Also, instead of asserting for cluster->myself, we just test
and error out normally (since the error does a hard exit anyway).
Closes #1597
|
| |
| |
| |
| |
| |
| | |
The continue stop us from triggering the
free after the long line for loop, so add it
earlier.
|
| |
| |
| |
| | |
It has an important name, but nothing uses it...
|
| | |
|
| |
| |
| |
| | |
Closes #878
|
| |
| |
| |
| |
| |
| |
| | |
Also adds a fallthrough case for when given
large values (like overflow numbers of 2^64 by mistake).
Closes #858
|
| |
| |
| |
| | |
Closes #857
|
| |
| |
| |
| |
| | |
Fix redis-cli prompt to state "not connected" after a SHUTDOWN command
is sent.
|
| |
| |
| |
| |
| |
| | |
d is more clear because the type of argument is dict not dictht
Closes #513
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| | |
This raises the max string to 4GB without any downside.
|
| |
| |
| |
| |
| |
| | |
Hat tip to @rfuchs. See: https://github.com/redis/hiredis/pull/178.
Fixes #1187
|
| |
| |
| |
| |
| |
| | |
Also moves acceptHandler() to be near the other accept...() functions.
Closes #1105
|