summaryrefslogtreecommitdiff
path: root/src/redis-cli.c
Commit message (Collapse)AuthorAgeFilesLines
...
* | Merge pull request #5743 from AngusP/forever-repeat-cliSalvatore Sanfilippo2019-01-221-6/+13
|\ \ | | | | | | Redis CLI: Fix broken interval and repeat behaviour (incluing in cluster mode)
| * | Add comment explaining negative repeatAngus Pearson2019-01-021-0/+2
| | |
| * | Fix broken interval and repeat bahaviour in redis-cli (incluing cluster mode)Angus Pearson2019-01-021-6/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This addresses two problems, one where infinite (negative) repeat count is broken for all types for Redis, and another specific to cluster mode where redirection is needed. Now allows and works correctly for negative (i.e. -1) repeat values passed with `-r` argument to redis-cli as documented here https://redis.io/topics/rediscli#continuously-run-the-same-command which seems to have regressed as a feature in 95b988 (though that commit removed bad integer wrap-around to `0` behaviour). This broken behaviour exists currently (e50458), and redis-cli will just exit immediately with repeat `-r <= 0` as opposed to send commands indefinitely as it should with `-r < 0` Additionally prevents a repeat * interval seconds hang/time spent doing nothing at the start before issuing commands in cluster mode (`-c`), where the command needed to redirect to a slot on another node, as commands where failing and waiting to be reissued but this was fully repeated before being reissued. For example, redis-cli -c -r 10 -i 0.5 INCR test_key_not_on_6379 Would hang and show nothing for 5 seconds (10 * 0.5) before showing (integer) 1 (integer) 2 (integer) 3 (integer) 4 (integer) 5 (integer) 6 (integer) 7 (integer) 8 (integer) 9 (integer) 10 at half second intervals as intended.
* | | fix clusterManagerGetAntiAffinityScore double free otypesZhicheng Wei2019-01-191-1/+2
| | |
* | | RESP3: redis-cli support for boolean in TTY output.antirez2019-01-091-0/+3
| | |
* | | RESP3: redis-cli: show the double as received from Redis.antirez2019-01-091-1/+1
| | |
* | | RESP3: hiredis: initial double implementation.antirez2019-01-091-0/+3
| | |
* | | RESP3: hiredis: map and set display for TTY output.antirez2019-01-091-3/+31
| | |
* | | Cluster Manager del-node: use CLUSTER RESET in place of SHUTDOWNartix2018-12-271-3/+4
|/ / | | | | | | See issue #5687
* | Cluster Manager: enable --cluster-replace also for 'fix' command.artix2018-12-191-35/+34
| |
* | Fixed memory leak in clusterManagerCompareKeysValues.artix2018-12-181-0/+2
| |
* | Cluster Manager: compare key values after BUSYKEY error (migration).artix2018-12-181-9/+124
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If a key exists in the target node during a migration (BUSYKEY), the value of the key on both nodes (source and target) will be compared. If the key has the same value on both keys, the migration will be automatically retried with the REPLACE argument in order to override the target's key. If the key has different values, the behaviour will depend on such cases: - In case of 'fix' command, the migration will stop and the user will be warned to manually check the key(s). - In other cases (ie. reshard), if the user launched the command with the --cluster-replace option, the migration will be retried with the REPLACE argument, elsewhere the migration will stop and the user will be warned.
* | Cluster Manager: avoid using reply error messages to check slot status.artix2018-12-121-25/+111
| | | | | | | | | | Slot assignment status is now checked by using CLUSTER SLOTS. Furthermore, one memory leak has been fixed.
* | Cluster Manager:artix2018-12-101-5/+14
| | | | | | | | | | | | - Multiple owners checking in 'fix'/'check' commands is now optional (using --cluster-search-multiple-owners). - Updated help.
* | Cluster Manager:artix2018-12-101-5/+17
| | | | | | | | | | - FixOpenSlot now correctly updates in-memory cluster configuration. - Improved output messages.
* | Cluster Manager: 'fix' command now handles open slots with migrating stateartix2018-12-101-6/+74
| | | | | | | | in one node and importing state in multiple nodes.
* | Cluster Manager: setting new slot owner is now handled atomicallyartix2018-12-101-31/+72
| | | | | | | | in 'fix' command.
* | Cluster Manager: code cleanup.artix2018-12-101-87/+41
| |
* | Cluster Manager: check/fix commands now handle multiple owners even ifartix2018-12-101-6/+129
| | | | | | | | all slots are covered and not open.
* | redis-cli reshard/rebalance: ability to force replacement on existing keysyura2018-12-071-5/+6
| |
* | Merge pull request #5460 from krallin/env-passwordSalvatore Sanfilippo2018-12-071-0/+14
|\ \ | | | | | | cli: pass auth through REDISCLI_AUTH
| * | cli: pass auth through REDISCLI_AUTHThomas Orozco2018-10-191-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds support for passing a password through a REDISCLI_AUTH environment variable (which is safer than the CLI), which might often be safer than passing it through a CLI argument. Passing a password this way does not trigger the warning about passing a password through CLI arguments, and CLI arguments take precedence over it.
* | | Fix cluster call reply format readableyongman2018-12-041-1/+1
| | |
* | | fix typoyongman2018-11-231-1/+1
| | |
* | | Fix choose a random master node for slot assignmentyongman2018-11-231-5/+29
| | |
* | | skip slave nodes when sending cluster setslot commandyongman2018-11-211-0/+1
| | |
* | | Fix pointer access and memory leak in redis-cli.yongman2018-11-161-3/+6
| | |
* | | Merge pull request #5529 from yongman/fix-rediscli-mallocSalvatore Sanfilippo2018-11-061-1/+1
|\ \ \ | | | | | | | | fix zmalloc in clusterManagerComputeReshardTable
| * | | fix malloc in clusterManagerComputeReshardTableyongman2018-11-061-1/+1
| |/ /
* | | Cluster Manager: removed unused var.artix2018-11-051-2/+1
| | |
* | | Cluster Manager: further improvements to "fix":artix2018-11-051-10/+49
| | | | | | | | | | | | | | | | | | | | | | | | - clusterManagerFixOpenSlot: ensure that the slot is unassigned before ADDSLOTS - clusterManagerFixSlotsCoverage: after cold migration, the slot configuration is now updated on all the nodes.
* | | Cluster Manager: fixed string parsing issue in clusterManagerGetConfigSignatureartix2018-11-051-3/+3
| | |
* | | Cluster Manager: better fix subcommand.artix2018-11-051-20/+78
| | |
* | | Cluster Manager: fixed typos in comments.artix2018-11-051-3/+3
| | |
* | | Cluster Manager: fixed 'DELSLOT' subcommand typo.artix2018-11-051-1/+1
|/ /
* | Cluster Manager: clusterManagerFixOpenSlot now counts node's keys in slotartix2018-09-171-1/+20
| | | | | | | | if node is neither migrating nor importing.
* | Revert "fix repeat argument issue and reduce unnessary loop times for ↵antirez2018-09-171-12/+7
| | | | | | | | | | | | | | redis-cli." Reverts commit 9505dd2011ef7143670b68247ff1818ffbad9768 since the commit introduced the very serious bug issue #5286.
* | LOLWUT: show the output verbatim in redis-cli.antirez2018-09-111-0/+1
| |
* | Slave removal: slave mode -> replica mode text in redis-cli.antirez2018-09-111-1/+1
| |
* | Slave removal: redis-cli --slave -> --replica.antirez2018-09-111-1/+3
| | | | | | | | | | --slave alias remains but is undocumented, just for backward compatibiltiy.
* | Merge pull request #5239 from jeffreylovitz/cli-help-fixSalvatore Sanfilippo2018-09-071-1/+1
|\ \ | | | | | | CLI Help text loop verifies arg count
| * | CLI Help text loop verifies arg countJeffrey Lovitz2018-08-121-1/+1
| | |
* | | fix usage typo in redis-cliWeiliang Li2018-09-061-1/+1
|/ /
* | Cluster Manager: more checks on --cluster-weight option.artix2018-07-131-2/+12
| |
* | Cluster Manager: auth support (-a argument).artix2018-07-131-19/+41
| |
* | fix repeat argument issue and reduce unnessary loop times for redis-cli.tengfeng2018-07-101-7/+12
| |
* | redis-cli: fix #4990 additional argument in help.antirez2018-07-091-0/+1
| |
* | redis-cli: fix #5096 double error message.antirez2018-07-091-1/+1
| |
* | redis-cli: cliConnect() flags CC_FORCE and CC_QUIET.antirez2018-07-091-13/+23
| | | | | | | | We need CC_QUIET in order to fix #5096 by silently failing if needed.
* | fix whitespace in redis-cli.cminkikim892018-07-091-362/+362
| |