| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
The old version of SPOP with "count" argument used an API call of dict.c
which was actually designed for a different goal, and was not capable of
good distribution. We follow a different three-cases approach optimized
for different ratiion between sets and requested number of elements.
The implementation is simpler and allowed the removal of a large amount
of code.
|
| |
|
|
|
|
|
| |
Now the API automatically creates its argv copy and increment ref count
of passed objects.
|
|
|
|
|
|
|
|
|
|
|
| |
Severan problems are addressed but still a few missing.
Since replication of this command was more complex than others since it
needs to replicate multiple SREM commands, an old API able to do this
was reused (it was taken inside the implementation since it was pretty
obvious soon or later that would be useful). The API was improved a bit
so that now a command may opt-out for the standard command replication
when the server.dirty counter is incremented, in order to "manually"
replicate what it wants.
|
| |
|
|
|
|
| |
Fixed by @oranagra, thank you.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Avoid code repetition introduced with PR #2367, also fixes the return
value to always return 0 if there is nothing more to rehash.
|
| |
|
|
|
|
|
|
|
| |
This is very similar to the optimization applied to dictGetRandomKeys,
but applied to the single key variant.
Related to issue #2306.
|
|
|
|
| |
Related to issue #2306.
|
|
|
|
|
|
|
| |
We use the invariant that the original table ht[0] is never populated up
to the index before the current rehashing index.
Related to issue #2306.
|
|
|
|
| |
Related to issue #2306.
|
|
|
|
| |
Related to issue #2306.
|
|
|
|
| |
Related to issue #2306.
|
|
|
|
|
|
| |
This test on Linux was extremely slow, since in Tcl we can't enable
easily tcp-nodelay, so the busy loop used to take *a lot* with bigger
writes. Fixed using pipelining.
|
| |
|
|
|
|
| |
Related to issue #2372.
|
|\
| |
| | |
Fix HAVE_BACKTRACE on Linux
|
| |
| |
| | |
Fixing #2371 as per @mattsta's suggestion
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
--stat mode already used to reconnect automatically if the server is no
longer available. This is useful since this is an interactive mode used
for debugging, however the same applies to --latency and --latency-dist
modes, so now both use the reconnecting command execution as well.
The reconnection code was modified to use basic VT100 escape sequences
in order to play better with different kinds of output on the screen
when the reconnection happens, and to hide the reconnection attempt
output when finally the reconnection happens.
|
| |
| |
| |
| |
| |
| | |
So far not able to find a color palette within the 256 colors which is
not confusing. However I believe it is a possible task, so will try
better later.
|
| |
| |
| |
| |
| | |
Still not happy with the result but low grays are hard to see in certain
monitors with a non perfect gamma.
|
|/ |
|
| |
|
| |
|
| |
|
|\ |
|
| |
| |
| |
| | |
Related to #2346.
|
|/ |
|
|
|
|
| |
Related to #2346.
|
|\
| |
| | |
Little optimization & bug fix in sort.c
|
| |
| |
| |
| | |
also fix the situation "dontsort DESC" of a list
|
| | |
|
|\ \ |
|
| | |
| | |
| | |
| | |
| | | |
- As per Antirez's suggestion, this commit raises an error when mutually
exclusive options are provided. Duplicate options are allowed.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Issue: #2157
As the SET command is parsed, it remembers which options are already set
and if a duplicate option is found, raises an error because it is
essentially an invalid syntax.
It still allows mutually exclusive options like EX and PX because taking
an option over another (precedence) is not essentially a syntactic
error.
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This also makes it backward compatible in the usage, but for the command
name. However the old command name was less obvious so it is worth to
break it probably.
With the new setup the program main can perform argument parsing and
everything else useful for an RDB check regardless of the Redis server
itself.
|
| | |
| | |
| | |
| | |
| | | |
Backtrace is a glibc extension, while setproctitle() implementation
depends on the memory layout and is partially libc dependent.
|
| | | |
|
|\ \ \
| | | |
| | | | |
Fix redis-cli CSV NIL output
|
| | | |
| | | |
| | | | |
Code was adding '\n' (line 521) to the end of NIL values exlusively making csv output inconsistent. Removed '\n'
|
| | | | |
|