antirez
0175a164e0
Cluster: move clusterBeforeSleep() call before unblocked clients processing.
...
Related to issue #2288 .
2015-03-20 09:47:54 +01:00
antirez
ad7956ce89
Cluster: more robust slave check in CLUSTER REPLICATE.
...
There are rare conditions where node->slaveof may be NULL even if the
node is a slave. To check by flag is much more robust.
2015-03-18 12:10:14 +01:00
Salvatore Sanfilippo
4aa4365112
Merge pull request #2386 from inkel/sentinel-add-client-command
...
Support CLIENT commands in Redis Sentinel
2015-03-13 18:23:36 +01:00
antirez
a0f82e4ee6
Cluster: fix CLUSTER NODES optimization error in 'j' increment.
2015-03-13 13:16:35 +01:00
antirez
7ba9877884
Cluster: CLUSTER NODES speedup.
2015-03-13 11:26:04 +01:00
antirez
aeba514612
Config: improve loglevel message error.
2015-03-12 14:43:07 +01:00
antirez
6f54cf9b6f
CONFIG GET syslog-facility added.
...
Was missing for some reason. Trivial to add after config.c refactoring.
2015-03-12 09:59:10 +01:00
antirez
9f591427f7
CONFIG SET refactoring: use enums in more places.
2015-03-11 23:21:04 +01:00
antirez
b9dd523d84
Net: better Unix socket error. Issue #2449 .
2015-03-11 17:24:55 +01:00
antirez
4570d75485
Merge branch 'unstable' of github.com:/antirez/redis into unstable
2015-03-11 17:05:14 +01:00
antirez
804534462f
CONFIG refactoring: configEnum abstraction.
...
Still many things to convert inside config.c in the next commits.
Some const safety in String objects creation and addReply() family
functions.
2015-03-11 17:00:13 +01:00
antirez
b764bd74ed
CONFIG SET: memory and special field macros.
2015-03-11 09:02:04 +01:00
Michel Martens
0480f01fc6
Add command CLUSTER MYID
2015-03-10 16:43:19 +00:00
antirez
5cbdf469c7
CONFIG SET: additional 2 numerical fields refactored.
2015-03-10 13:00:36 +01:00
antirez
570fcd198b
CONFIG SET refactoring of bool and value fields.
...
Not perfect since The Solution IMHO is to have a DSL with a table of
configuration functions with type, limits, and aux functions to handle
the odd ones. However this hacky macro solution is already better and
forces to put limits in the range of numerical fields.
More field types to be refactored in the next commits hopefully.
2015-03-10 12:37:39 +01:00
antirez
3713dc1c1b
Config: activerehashing option support in CONFIG SET.
2015-03-08 15:33:42 +01:00
antirez
aa3a3024d0
Fix iterator for issue #2438 .
...
Itereator misuse due to analyzeLatencyForEvent() accessing the
dictionary during the iteration, without the iterator being
reclared as safe.
2015-03-04 11:48:19 -08:00
antirez
271415034e
Migrate: replace conditional with pre-computed value.
2015-02-27 22:33:54 +01:00
antirez
b8efe8b1c8
String: use new sdigits10() API in stringObjectLen().
...
Should be much faster, and regardless, the code is more obvious now
compared to generating a string just to get the return value of the
ll2stirng() function.
2015-02-27 16:09:17 +01:00
antirez
21bba043d0
Utils: Include stdint.h and fix signess in sdigits10().
2015-02-27 16:03:02 +01:00
antirez
c7ce8c0624
Hash: HSTRLEN crash fixed when getting len of int-encoded value
2015-02-27 15:37:04 +01:00
antirez
d4a13bd2f4
Hash: HSTRLEN (was HVSTRLEN) improved.
...
1. HVSTRLEN -> HSTRLEN. It's unlikely one needs the length of the key,
not clear how the API would work (by value does not make sense) and
there will be better names anyway.
2. Default is to return 0 when field is missing.
3. Default is to return 0 when key is missing.
4. The implementation was slower than needed, and produced unnecessary COW.
Related issue #2415 .
2015-02-27 15:31:55 +01:00
antirez
b358007d7c
Merge branch 'unstable' of github.com:/antirez/redis into unstable
2015-02-27 15:24:25 +01:00
Salvatore Sanfilippo
261b9d1b0f
Merge pull request #2415 from landmime/unstable
...
added a new hvstrlen command
2015-02-27 15:24:04 +01:00
antirez
4aafbcb86b
Hash: API to get value string len by field name.
2015-02-27 15:22:49 +01:00
antirez
b3d03d79d6
Utils: added function to get radix 10 string length of signed integer.
2015-02-27 15:22:10 +01:00
antirez
e726eca8e2
server.current_client fix and minor refactoring.
...
Thanks to @codeslinger (Toby DiPasquale) for identifying the issue.
Related to issue #2409 .
2015-02-27 14:17:46 +01:00
antirez
7e11b8bb05
Improvements to PR #2425
...
1. Remove useless "cs" initialization.
2. Add a "select" var to capture a condition checked multiple times.
3. Avoid duplication of the same if (!copy) conditional.
4. Don't increment dirty if copy is given (no deletion is performed),
otherwise we propagate MIGRATE when not needed.
2015-02-26 10:27:56 +01:00
Tommy Wang
e06d62c2aa
Add last_dbid to migrateCachedSocket to avoid redundant SELECT
...
Avoid redundant SELECT calls when continuously migrating keys to
the same dbid within a target Redis instance.
2015-02-26 10:18:43 +01:00
antirez
84e1096f80
Cast sentlen to int before comparison wit bufpos.
...
This is safe since bufpos is small, inside the range of the local
client buffer.
2015-02-25 10:33:37 +01:00
Salvatore Sanfilippo
31e8dbbfdc
Merge pull request #2050 from mattsta/bitops-no-overalloc
...
Bitops: Stop overallocating storage space on set
2015-02-25 10:18:07 +01:00
Salvatore Sanfilippo
b0eb128ac7
Merge pull request #2054 from mattsta/fix-set-sentinel-quorum
...
Sentinel: Add initial quorum bounds check
2015-02-25 10:09:40 +01:00
Matt Stancliff
92f3e19db7
Fix types broken by previous type cleanup
...
Revert some size_t back to off_t
Set reply_bytes needs to 64 bits everywhere
Revert bufpos to int since it's a max of 16k into buf[]
2015-02-24 17:39:59 +01:00
Salvatore Sanfilippo
de4eacd132
Merge pull request #2301 from mattsta/fix/lengths
...
Improve type correctness
2015-02-24 17:22:53 +01:00
Salvatore Sanfilippo
b2ffd67c91
Merge pull request #1966 from mattsta/fix-sentinel-info
...
Sentinel: Improve INFO command behavior
2015-02-24 17:20:09 +01:00
Salvatore Sanfilippo
813c1d300a
Merge pull request #2273 from mattsta/improve/consistency/INFO/memory
...
Improve consistency of INFO MEMORY
2015-02-24 17:19:17 +01:00
Salvatore Sanfilippo
37238841e5
Merge pull request #2401 from mattsta/fix/quicklist/pop
...
Fix quicklist Pop()
2015-02-24 17:13:39 +01:00
antirez
fa8fcff3f0
Change RENAME behavior when src and dst keys are the same.
...
Fixes issue #2392 .
2015-02-23 11:24:24 +01:00
Jason Roth
6cc1d51719
added a new hvstrlen command
...
the hvstrlen command returns the length of a hash field value
2015-02-21 15:01:18 +00:00
Matt Stancliff
58061fe49b
Fix quicklist tests for Pop()
...
Now the tests actually compare return values instead of just
verifying _something_ got returned.
2015-02-17 11:33:08 -05:00
John Doe
62a6895054
Fix quicklist Pop() result
...
Closes #2398
2015-02-17 11:31:08 -05:00
antirez
7009630914
Version bumped to 3.1.999 (3.2 alpha versions).
2015-02-14 17:19:17 +01:00
antirez
40f50b38e0
redis-cli --latency-dist: one gray more, and --mono support.
2015-02-13 14:38:21 +01:00
antirez
b0d3557307
redis-cli --latency-dist, hopefully better palette.
...
Less grays: more readable palette since usually we have a non linear
distribution of percentages and very near gray tones are hard to take
apart. Final part of the palette is gradient from yellow to red. The red
part is hardly reached because of usual distribution of latencies, but
shows up mainly when latencies are very high because of the logarithmic
scale, this is coherent to what people expect: red = bad.
2015-02-13 12:52:46 +01:00
antirez
75a2dbffa8
Extend memory unit support in CONFIG SET.
...
Related to PR #2357 .
2015-02-12 16:51:20 +01:00
Salvatore Sanfilippo
a4e2db7451
Merge pull request #2357 from lamby/config-set-maxmemory-units
...
Support "1G" etc. units in CONFIG SET maxmemory
2015-02-12 16:42:09 +01:00
antirez
07d4c76179
Better memtoll() error checking.
...
Related to PR #2357 .
2015-02-12 16:40:46 +01:00
antirez
38000e913a
SPOP with count: fix replication for code path #3 .
2015-02-11 10:52:28 +01:00
antirez
87a6696d89
SPOP: reimplemented for speed and better distribution.
...
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.
2015-02-11 10:52:28 +01:00
antirez
38afac7752
alsoPropagate: handle REDIS_CALL_PROPAGATE and AOF loading.
2015-02-11 10:52:28 +01:00