summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | | Merge pull request #3008 from badboy/fix-2911Salvatore Sanfilippo2016-05-051-1/+1
|\ \ \ \ \ | | | | | | | | | | | | Fix nanosecond conversion
| * | | | | Fix nanosecond conversionJan-Erik Rediger2016-01-131-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1 microsecond = 1000 nanoseconds 1e3 = 1000 10e3 = 10000
* | | | | | redis-cli: don't free historyfile, is used later.antirez2016-05-051-1/+1
| | | | | |
* | | | | | Cluster: make getNodeByQuery() responsible of -CLUSTERDOWN errors.antirez2016-05-052-18/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes a bug introduced by d827dbf, and makes the code consistent with the logic of always allowing, while the cluster is down, commands that don't target any key. As a side effect the code is also simpler now.
* | | | | | Merge pull request #3039 from itamarhaber/patch-3Salvatore Sanfilippo2016-05-051-1/+1
|\ \ \ \ \ \ | | | | | | | | | | | | | | Fixes a typo in the comments
| * | | | | | Fixes a typoItamar Haber2016-01-281-1/+1
| | | | | | |
* | | | | | | Merge pull request #3077 from Palethorn/ipv6-redirect-parseSalvatore Sanfilippo2016-05-051-1/+1
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | Fix for #3076 Reverse redirect address parse
| * | | | | | | Reverse redirect address parseDavid Cavar2016-02-091-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Fix issue in case the redirect address is in ipv6 format. Parse from behind to extract last part of the response which represents actual port.
* | | | | | | | Bind both IPv4 and IPv6 or exit with an error by default.antirez2016-05-051-8/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Thanks to @tushar2708 for the PR. I applied a slightly different fix. Thanks to @cespare for reporting. Close #3024 Close #3020
* | | | | | | | Ensure slots are rechecked on EXEC.Chris Thunes2016-05-051-2/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes #2515.
* | | | | | | | Merge pull request #3188 from therealbill/unstableSalvatore Sanfilippo2016-05-053-4/+4
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | maxmemory_policy fix for #3187
| * | | | | | | | fix for #3187therealbill2016-04-223-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I've renamed maxmemoryToString to evictPolicyToString since that is more accurate (and easier to mentally connect with the correct data), as well as updated the function to user server.maxmemory_policy rather than server.maxmemory. Now with a default config it is actually returning the correct policy rather than volatile-lru.
* | | | | | | | | Merge pull request #3152 from be-hase/fix/check_open_slotsSalvatore Sanfilippo2016-05-051-6/+7
|\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | Fix redis-trib.rb
| * | | | | | | | | fix variableRyosuke Hasebe2016-03-301-5/+5
| | | | | | | | | |
| * | | | | | | | | fix check_open_slotsRyosuke Hasebe2016-03-301-1/+2
| | | | | | | | | |
* | | | | | | | | | Minor redis-cli wording change in --help output.antirez2016-05-041-1/+2
| | | | | | | | | |
* | | | | | | | | | Allow CONFIG GET during loading.antirez2016-05-042-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Thanks to @oranagra for the idea of allowing CONFIG GET during loading.
* | | | | | | | | | Command "r" flag removed from commands not accessing the key space.antirez2016-05-041-35/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Thanks to @oranagra for the hint about misplaced 'r' flags.
* | | | | | | | | | DEBUG command self documentation.antirez2016-05-042-2/+49
| | | | | | | | | |
* | | | | | | | | | Merge pull request #3191 from oranagra/minor_fixSalvatore Sanfilippo2016-05-0413-38/+55
|\ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | Minor fixes found during merge and code review
| * | | | | | | | | | various cleanups and minor fixesOran Agra2016-04-258-25/+23
| | | | | | | | | | |
| * | | | | | | | | | dict.c minor optimizationOran Agra2016-04-251-4/+4
| | | | | | | | | | |
| * | | | | | | | | | networking.c minor optimizationOran Agra2016-04-251-6/+5
| | | | | | | | | | |
| * | | | | | | | | | add DEBUG JEMALLC PURGE and JEMALLOC INFO cleanupOran Agra2016-04-252-2/+17
| | | | | | | | | | |
| * | | | | | | | | | fix small issues in redis 3.2Oran Agra2016-04-252-1/+3
| | | | | | | | | | |
| * | | | | | | | | | additional fix to issue #2948Oran Agra2016-04-251-0/+3
| | |/ / / / / / / / | |/| | | | | | | |
* | | | | | | | | | Reply with error on negative geo radius.antirez2016-05-041-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Thanks to @tidwall for reporting. Close #3194.
* | | | | | | | | | New masters with slots are now targets of migration if others are.antirez2016-05-021-1/+35
|/ / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes issue #3043. Before this fix, after a complete resharding of a master slots to other nodes, the master remains empty and the slaves migrate away to other masters with non-zero nodes. However the old master now empty, is no longer considered a target for migration, because the system has no way to tell it had slaves in the past. This fix leaves the algorithm used in the past untouched, but adds a new rule. When a new or old master which is empty and without slaves, are assigend with their first slot, if other masters in the cluster have slaves, they are automatically considered to be targets for replicas migration.
* | | | | | | | | Fix ZINCRBY return value.Damian Janowski2016-04-181-0/+2
| | | | | | | | |
* | | | | | | | | ZREM refactored into proper API.antirez2016-04-152-49/+48
| | | | | | | | |
* | | | | | | | | ZRANK refactored into proper API.antirez2016-04-152-50/+72
| | | | | | | | |
* | | | | | | | | zsetAdd() API exposed into server.h.antirez2016-04-142-15/+16
| | | | | | | | |
* | | | | | | | | ZADD refactored into a proper API.antirez2016-04-141-86/+182
| | | | | | | | |
* | | | | | | | | redis-cli preferences and rc file support.antirez2016-04-131-17/+85
| | | | | | | | |
* | | | | | | | | redis-cli help.h updated.antirez2016-04-131-8/+18
| | | | | | | | |
* | | | | | | | | redis-cli hints.antirez2016-04-131-0/+53
| | | | | | | | |
* | | | | | | | | ae.c: Fix delay until next timer event.antirez2016-04-041-9/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fix was written by Anthony LaTorre. The old code mis-calculated the amount of time to wait till next event.
* | | | | | | | | ae.c: comment to explain why we have a useless maxId check.antirez2016-04-041-1/+5
| | | | | | | | |
* | | | | | | | | Fix ae.c to avoid timers infinite loop.antirez2016-04-044-30/+28
|/ / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fix was suggested by Anthony LaTorre, that provided also a good test case that was used to verify the fix. The problem with the old implementation is that, the time returned by a timer event (that is the time after it want to run again) is added to the event *start time*. So if the event takes, in order to run, more than the time it says it want to be scheduled again for running, an infinite loop is triggered.
* | | | | | | | BITFIELD: Farest bit set is offset+bits-1. Off by one error fixed.antirez2016-03-021-2/+4
| | | | | | | |
* | | | | | | | More BITFIELD fixes. Overflow conditional simplified.antirez2016-03-021-9/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | See issue #3114.
* | | | | | | | Merge pull request #3118 from sunheehnus/bitfield-fix-minor-bugSalvatore Sanfilippo2016-03-021-5/+8
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | bitops/bitfield: fix length, overflow condition and *sign
| * | | | | | | | bitops/bitfield: fix length, overflow condition and *signSun He2016-03-021-5/+8
| | | | | | | | |
* | | | | | | | | Fix INFO commandstats reporting when argv is rewritten.antirez2016-03-022-3/+3
|/ / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We want to report the original command in the stats, for example GEOADD, even when what is actually executed is the ZADD implementation.
* | | | | | | | BITFIELD: refactoring & fix of retval on FAIL.antirez2016-02-291-8/+24
| | | | | | | |
* | | | | | | | BITFIELD: Fix #<index> form parsing.antirez2016-02-261-6/+4
| | | | | | | |
* | | | | | | | BITFIELD: Support #<index> offsets form.antirez2016-02-261-6/+23
| | | | | | | |
* | | | | | | | BITFIELD command initial implementation.antirez2016-02-263-32/+476
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The new bitfield command is an extension to the Redis bit operations, where not just single bit operations are performed, but the array of bits composing a string, can be addressed at random, not aligned offsets, with any width unsigned and signed integers like u8, s5, u10 (up to 64 bit signed integers and 63 bit unsigned integers). The BITFIELD command supports subcommands that can SET, GET, or INCRBY those arbitrary bit counters, with multiple overflow semantics. Trivial and credits: A similar command was imagined a few times in the past, but for some reason looked a bit far fetched or not well specified. Finally the command was proposed again in a clear form by Yoav Steinberg from Redis Labs, that proposed a set of commands on arbitrary sized integers stored at bit offsets. Starting from this proposal I wrote an initial specification of a single command with sub-commands similar to what Yoav envisioned, using short names for types definitions, and adding control on the overflow. This commit is the resulting implementation. Examples: BITFIELD mykey OVERFLOW wrap INCRBY i2 10 -1 GET i2 10
* | | | | | | | Eliminates engineers near the equator & prime meridianItamar Haber2016-02-181-4/+4
| | | | | | | |
* | | | | | | | Fixes a typo in a commentItamar Haber2016-02-181-1/+1
| | | | | | | |