redict/src
Matt Stancliff 0042fb0eb0 redis-cli: stop showing incorrectly selected DB
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
2014-08-07 12:04:33 +02:00
..
.gitignore Ignore gcov/lcov artifacts 2012-04-13 17:52:33 -07:00
adlist.c No more trailing spaces in Redis source code. 2014-06-26 18:48:40 +02:00
adlist.h BSD license added to every C source and header file. 2012-11-08 18:31:32 +01:00
ae_epoll.c Fixed grammar: before H the article is a, not an. 2013-12-05 16:35:32 +01:00
ae_evport.c ae.c event loop: API to resize the fd set size on the run. 2013-06-28 16:39:49 +02:00
ae_kqueue.c No more trailing spaces in Redis source code. 2014-06-26 18:48:40 +02:00
ae_select.c ae.c event loop: API to resize the fd set size on the run. 2013-06-28 16:39:49 +02:00
ae.c ae.c event loop: API to resize the fd set size on the run. 2013-06-28 16:39:49 +02:00
ae.h ae.c event loop: API to resize the fd set size on the run. 2013-06-28 16:39:49 +02:00
anet.c No more trailing spaces in Redis source code. 2014-06-26 18:48:40 +02:00
anet.h Bind source address for cluster communication 2014-03-04 17:36:45 -05:00
aof.c LATENCY DOCTOR first implementation complete. 2014-07-08 17:05:56 +02:00
asciilogo.h BSD license added to every C source and header file. 2012-11-08 18:31:32 +01:00
bio.c Fixed many typos. 2013-01-19 10:59:44 +01:00
bio.h Make bio.c threads killable ASAP if needed. 2012-11-22 10:12:11 +01:00
bitops.c String value unsharing refactored into proper function. 2014-03-30 18:32:17 +02:00
blocked.c WAIT command: synchronous replication for Redis. 2013-12-04 16:20:03 +01:00
cluster.c Cluster: don't migrate to a master that never had slaves. 2014-07-25 11:02:09 +02:00
cluster.h Cluster: slave validity factor is now user configurable. 2014-05-22 16:57:54 +02:00
config.c Latency monitor trheshold value is now configurable. 2014-07-02 12:28:17 +02:00
config.h Allow __powerpc__ to define HAVE_ATOMIC too 2014-06-26 08:55:47 -04:00
crc16.c No more trailing spaces in Redis source code. 2014-06-26 18:48:40 +02:00
crc64.c crc64.c modified for incremental computation. 2012-04-09 12:20:47 +02:00
crc64.h Introduced the Build ID in INFO and --version output. 2012-11-29 14:20:08 +01:00
db.c No more trailing spaces in Redis source code. 2014-06-26 18:48:40 +02:00
debug.c DEBUG CMDKEYS moved to COMMAND GETKEYS. 2014-06-27 12:22:15 +02:00
dict.c Added dictGetRandomKeys() to dict.c: mass get random entries. 2014-03-20 15:50:46 +01:00
dict.h Add double field in dict.c entry value union. 2014-07-22 17:38:22 +02:00
endianconv.c endian.c/h -> endianconv.c/h to avoid issues with broken libraries search paths. 2012-02-14 16:11:46 +01:00
endianconv.h No more trailing spaces in Redis source code. 2014-06-26 18:48:40 +02:00
fmacros.h Fix Solaris compilation due to ctime_r() call. 2014-06-30 16:29:12 +02:00
help.h redis-cli help.h updated. 2014-04-22 16:14:38 +02:00
hyperloglog.c PFSELFTEST: less false positives. 2014-07-23 11:43:57 +02:00
intset.c BSD license added to every C source and header file. 2012-11-08 18:31:32 +01:00
intset.h BSD license added to every C source and header file. 2012-11-08 18:31:32 +01:00
latency.c Fix typo in LATENCY DOCTOR output. 2014-07-11 10:57:28 +02:00
latency.h LATENCY DOCTOR: initial draft and events summary output. 2014-07-08 11:31:46 +02:00
lzf_c.c No more trailing spaces in Redis source code. 2014-06-26 18:48:40 +02:00
lzf_d.c No more trailing spaces in Redis source code. 2014-06-26 18:48:40 +02:00
lzf.h No more trailing spaces in Redis source code. 2014-06-26 18:48:40 +02:00
lzfP.h No more trailing spaces in Redis source code. 2014-06-26 18:48:40 +02:00
Makefile ASCII sparklines generation API. 2014-07-02 10:13:53 +02:00
Makefile.dep Dependencies updated. 2014-07-02 17:04:14 +02:00
memtest.c Fixed a bug in memtest progress bar, that had no actual effects. 2013-01-21 12:34:22 +01:00
mkreleasehdr.sh suppress external diff program when using git diff. 2013-02-24 18:17:46 +01:00
multi.c No more trailing spaces in Redis source code. 2014-06-26 18:48:40 +02:00
networking.c PubSub clients refactoring and new PUBSUB flag. 2014-07-16 17:34:07 +02:00
notify.c Fix keyspace events flags-to-string conversion. 2014-01-08 17:18:34 +01:00
object.c tryObjectEncoding(): use shared objects with maxmemory and non-LRU policy. 2014-07-18 10:09:51 +02:00
pqsort.c No more trailing spaces in Redis source code. 2014-06-26 18:48:40 +02:00
pqsort.h BSD license added to every C source and header file. 2012-11-08 18:31:32 +01:00
pubsub.c PubSub clients refactoring and new PUBSUB flag. 2014-07-16 17:34:07 +02:00
rand.c BSD license added to every C source and header file. 2012-11-08 18:31:32 +01:00
rand.h BSD license added to every C source and header file. 2012-11-08 18:31:32 +01:00
rdb.c Fail SYNC if background save child aborted due to a signal. 2014-07-28 14:43:30 +03:00
rdb.h Fixed many typos. 2013-01-19 10:59:44 +01:00
redis-benchmark.c redis-benchmark: abort when all clients are disconnected. 2014-07-04 17:52:18 +02:00
redis-check-aof.c BSD license added to every C source and header file. 2012-11-08 18:31:32 +01:00
redis-check-dump.c No more trailing spaces in Redis source code. 2014-06-26 18:48:40 +02:00
redis-cli.c redis-cli: stop showing incorrectly selected DB 2014-08-07 12:04:33 +02:00
redis-trib.rb Cluster: fix redis-trib --from all. 2014-07-21 15:30:25 +02:00
redis.c Fix spelling of "stand alone" in ascii art 2014-07-28 00:30:12 -07:00
redis.h PubSub clients refactoring and new PUBSUB flag. 2014-07-16 17:34:07 +02:00
redisassert.h assert.h replaced with redisassert.h when appropriate. 2013-08-19 15:01:21 +02:00
release.c No more trailing spaces in Redis source code. 2014-06-26 18:48:40 +02:00
replication.c No more trailing spaces in Redis source code. 2014-06-26 18:48:40 +02:00
rio.c Use fflush() before fsync() in rio.c. 2014-01-22 09:54:55 +01:00
rio.h Fixed typo in rio.h, simgle -> single. 2013-07-16 15:43:36 +02:00
scripting.c Fix semantics of Lua calls to SELECT. 2014-06-12 16:05:52 +02:00
sds.c No more trailing spaces in Redis source code. 2014-06-26 18:48:40 +02:00
sds.h Use sdscatfmt() in getClientInfoString() to make it faster. 2014-04-28 16:55:43 +02:00
sentinel.c Sentinel implementation of ROLE. 2014-06-23 12:07:41 +02:00
setproctitle.c Set proctitle: avoid the use of __attribute__((constructor)). 2013-02-27 11:50:35 +01:00
sha1.c Fixed many typos. 2013-01-19 10:59:44 +01:00
sha1.h redis.c split into many different C files. 2010-07-01 14:38:51 +02:00
slowlog.c Introduction of a new string encoding: EMBSTR 2013-07-22 10:31:38 +02:00
slowlog.h BSD license added to every C source and header file. 2012-11-08 18:31:32 +01:00
solarisfixes.h BSD license added to every C source and header file. 2012-11-08 18:31:32 +01:00
sort.c Cluster: don't allow BY option of SORT as well. 2014-03-10 16:28:18 +01:00
sparkline.c LATENCY GRAPH implemented. 2014-07-02 16:31:22 +02:00
sparkline.h LATENCY GRAPH implemented. 2014-07-02 16:31:22 +02:00
syncio.c No more trailing spaces in Redis source code. 2014-06-26 18:48:40 +02:00
t_hash.c SCAN code refactored to parse cursor first. 2013-11-05 15:47:50 +01:00
t_list.c No more trailing spaces in Redis source code. 2014-06-26 18:48:40 +02:00
t_set.c No more trailing spaces in Redis source code. 2014-06-26 18:48:40 +02:00
t_string.c String value unsharing refactored into proper function. 2014-03-30 18:32:17 +02:00
t_zset.c Remove useless var and check in zunionInterGenericCommand(). 2014-07-22 17:38:22 +02:00
testhelp.h BSD license added to every C source and header file. 2012-11-08 18:31:32 +01:00
util.c Fix util.c compilation by including stdint.h. 2014-07-23 18:02:02 +02:00
util.h pathIsBaseName() added to utils.c 2013-07-02 12:08:07 +02:00
valgrind.sup more valgrind friendly test 2011-07-06 15:22:00 +02:00
version.h Make unstable branch version unique and distinguishable. 2014-06-25 15:30:34 +02:00
ziplist.c assert.h replaced with redisassert.h when appropriate. 2013-08-19 15:01:21 +02:00
ziplist.h BSD license added to every C source and header file. 2012-11-08 18:31:32 +01:00
zipmap.c No more trailing spaces in Redis source code. 2014-06-26 18:48:40 +02:00
zipmap.h mistype fixed 2013-09-03 15:15:51 +02:00
zmalloc.c Allow atomic memory count update with C11 builtins 2014-06-26 08:52:53 -04:00
zmalloc.h Sample and cache RSS in serverCron(). 2014-03-24 12:00:20 +01:00