summaryrefslogtreecommitdiff
path: root/src/redis-cli.c
Commit message (Collapse)AuthorAgeFilesLines
...
* redis-cli --latency-dist now uses a color palette.antirez2015-02-071-8/+14
| | | | | Still not happy with the result but low grays are hard to see in certain monitors with a non perfect gamma.
* redis-cli latency dist: add new top HL.antirez2015-02-071-0/+1
|
* Add missing latency-dest legend symbol.antirez2015-02-071-1/+1
|
* Initial implementation of redis-cli --latency-dist.antirez2015-02-071-0/+153
|
* Update redis-cli.cmattcollier2015-01-251-1/+1
| | | Code was adding '\n' (line 521) to the end of NIL values exlusively making csv output inconsistent. Removed '\n'
* Add DEBUG JEMALLOC INFOMatt Stancliff2014-12-231-0/+3
| | | | | Uses jemalloc function malloc_stats_print() to return stats about what jemalloc has allocated internally.
* AnetFormatIP(): renamed, commented, now sticks to IP:port format.antirez2014-12-111-1/+1
| | | | | A few code style changes + consistent format: not nice for humans but better for parsers.
* Cleanup all IP formatting codeMatt Stancliff2014-12-111-3/+2
| | | | | Instead of manually checking for strchr(n,':') everywhere, we can use our new centralized IP formatting functions.
* Merge pull request #2106 from NanXiao/unstableSalvatore Sanfilippo2014-12-111-2/+2
|\ | | | | Fix function prototype in redis-cli.c.
| * Fix function prototype in redis-cli.c.Nan Xiao2014-10-271-2/+2
| | | | | | Fix function prototype in redis-cli.c.
* | Merge pull request #2114 from h0x91b/redis-cli-fix-clusterSalvatore Sanfilippo2014-12-111-24/+32
|\ \ | | | | | | Reconnect redis-cli when cluster return "moved"
| * | Reconnect redis-cli when cluster return "moved"h0x91b2014-10-301-24/+32
| | | | | | | | | | | | | | | | | | | | | | | | if redis works in cluster-mode and redis-cli was run with argv, reconnect if needs. example: ./redis-cli set foo bar if return is MOVED redis-cli just do nothing.
* | | Merge pull request #2133 from chooper/histfile-overrideSalvatore Sanfilippo2014-12-101-4/+29
|\ \ \ | | | | | | | | override histfile from env - fixes #831 and copies #833
| * | | override histfile from env - fixes #831 and copies #833Charles Hooper2014-11-101-4/+29
| |/ /
* | | Only ignore sigpipe in interactive modeJan-Erik Rediger2014-12-091-2/+3
| | | | | | | | | | | | | | | | | | This allows shell pipes to correctly end redis-cli. Ref #2066
* | | Document redis-cli --stat in --help output.antirez2014-11-251-0/+1
|/ /
* | redis-cli: ignore SIGPIPE network errorsMatt Stancliff2014-10-291-1/+4
|/ | | | Closes #2066
* redis-cli: add missing newline in error message.antirez2014-10-151-1/+1
|
* redis-cli: fix prompt after shutdown commandDov Murik2014-08-181-1/+4
| | | | | Fix redis-cli prompt to state "not connected" after a SHUTDOWN command is sent.
* Remove warnings and improve integer sign correctness.antirez2014-08-131-4/+5
|
* Remove unused LINE_BUFLEN definitioncharsyam2014-08-081-1/+0
| | | | Closes #1129
* Use 'void' for zero-argument functionscubicdaiya2014-08-081-9/+9
| | | | | | | | According to the C standard, it is desirable to give the type 'void' to functions have no argument. Closes #1631
* Fix issues raised by clang analyzerKashif Rasul2014-08-071-0/+1
| | | | | | | | | | | Modified by @antirez since the original fix to genInfoString() looked weak. Probably the clang analyzer complained about `section` being possibly NULL, and strcasecmp() called with a NULL pointer. In the practice this can never happen, still for the sake of correctness the right fix is not to modify only the first call, but to set `section` to the value of "default" if it happens to be NULL. Closes #1660
* redis-cli: fix latency result outputJan-Erik Rediger2014-08-071-4/+8
| | | | | | (Cleaned up a little by @mattsta) Closes #1774
* redis-cli: Add --no-raw optionMatt Stancliff2014-08-071-0/+3
| | | | | | | Some people need formatted output even when they have no interactive tty. Fixes #760
* redis-cli: stop showing incorrectly selected DBMatt Stancliff2014-08-071-1/+6
| | | | | | | | | | | | Previously redis-cli would happily show "-1" or "99999" as valid DB choices. Now, if the SELECT call returned an error, we don't update the DB number in the CLI. Inspired by @anupshendkar in #1313 Fixes #566, #1313
* redis-cli: Re-attach selected DB after authMatt Stancliff2014-08-071-1/+5
| | | | | | | | | | | | Previously, if you did SELECT then AUTH, redis-cli would show your SELECT'd db even though it didn't happen. Note: running into this situation is a (hopefully) very limited used case of people using multiple DBs and AUTH all at the same time. Fixes antirez#1639
* LATENCY DOCTOR: initial draft and events summary output.antirez2014-07-081-1/+3
|
* LATENCY GRAPH implemented.antirez2014-07-021-2/+3
|
* No more trailing spaces in Redis source code.antirez2014-06-261-16/+16
|
* add missing signal.h includeAlex Suraci2014-06-171-0/+1
|
* Add SIGINT handler to cli --intrinsic-latencyMatt Stancliff2014-06-171-1/+8
| | | | | If we run a long latency session and want to Ctrl-C out of it, it's nice to still get the summary output at the end.
* Fixed typo in word avarege in result message of --intrinsic-latency analyzerAndy Grunwald2014-05-221-1/+1
|
* Linenoise updated, multiline mode enabled in redis-cli.antirez2014-03-131-0/+1
|
* Improved bigkeys with progress, pipelining and summarymichael-grunder2014-02-271-81/+244
| | | | | | | | | | This commit reworks the redis-cli --bigkeys command to provide more information about our progress as well as output summary information when we're done. - We now show an approximate percentage completion as we go - Hiredis pipelining is used for TYPE and SIZE retreival - A summary of keyspace distribution and overall breakout at the end
* Merge branch 'bigkeys_scan' of git://github.com/michael-grunder/redis into ↵antirez2014-02-251-58/+82
|\ | | | | | | unstable
| * Update --bigkeys to use SCANmichael-grunder2014-02-251-58/+82
| | | | | | | | | | | | This commit changes the findBigKeys() function in redis-cli.c to use the new SCAN command for iterating the keyspace, rather than RANDOMKEY. Because we can know when we're done using SCAN, it will exit after exhausting the keyspace.
* | redis-cli: also remove useless uint8_t.antirez2014-02-251-1/+1
| |
* | redis-cli: don't use uint64_t where actually not needed.antirez2014-02-251-2/+2
| | | | | | | | | | | | The computation is just something to take the CPU busy, no need to use a specific type. Since stdint.h was not included this prevented compilation on certain systems.
* | redis-cli: check argument existence for --pattern.antirez2014-02-251-1/+1
| |
* | redis-cli: --intrinsic-latency run mode added.antirez2014-02-251-3/+81
| |
* | redis-cli: added comments to split program in parts.antirez2014-02-251-5/+41
|/
* Auto-enter slaveMode when SYNC from redis-cliMatt Stancliff2014-02-101-0/+12
| | | | | | | If someone asks for SYNC or PSYNC from redis-cli, automatically enter slaveMode (as if they ran redis-cli --slave) and continue printing the replication stream until either they Ctrl-C or the master gets disconnected.
* redis-cli --help output improved with --scan and periods.antirez2014-01-221-22/+24
|
* redis-cli: support for --scan option.antirez2014-01-221-0/+46
|
* Document the redis-cli --csv option.Michel Martens2013-09-261-0/+1
|
* redis-cli: fix big keys search when the key no longer exist.antirez2013-09-041-1/+0
| | | | | | The code freed a reply object that was never created, resulting in a segfault every time randomkey returned a key that was deleted before we queried it for size.
* Wrap IPv6 in brackets in the prompt.Jan-Erik Rediger2013-07-111-1/+2
|
* redis-cli: introduced --pipe-timeout.antirez2013-07-031-25/+49
| | | | | | | | | | When in --pipe mode, after all the data transfer to the server is complete, now redis-cli waits at max the specified amount of seconds (30 by default, use 0 to wait forever) without receiving any reply at all from the server. After this time limit the operation is aborted with an error. That's related to issue #681.
* redis-cli --pipe: send final ECHO in a safer way.antirez2013-07-031-2/+6
| | | | | | | | | | | | | | | | | | | | | If the protocol read from stdin happened to contain grabage (invalid random chars), in the previous implementation it was possible to end with something like: dksfjdksjflskfjl*2\r\n$4\r\nECHO.... That is invalid as the *2 should start into a new line. Now we prefix the ECHO with a CRLF that has no effects on the server but prevents this issues most of the times. Of course if the offending wrong sequence is something like: $3248772349\r\n No one is going to save us as Redis will wait for data in the context of a big argument, so this fix does not cover all the cases. This partially fixes issue #681.