redict/src
antirez 1965e22aa1 Sentinel: always redirect on master->slave transition.
Sentinel redirected to the master if the instance changed runid or it
was the first time we got INFO, and a role change was detected from
master to slave.

While this is a good idea in case of slave->master, since otherwise we
could detect a failover without good reasons just after a reboot with a
slave with a wrong configuration, in the case of master->slave
transition is much better to always perform the redirection for the
following reasons:

1) A Sentinel may go down for some time. When it is back online there is
no other way to understand there was a failover.
2) Pointing clients to a slave seems to be always the wrong thing to do.
3) There is no good rationale about handling things differently once an
instance is rebooted (runid change) in that case.
2013-04-24 11:30:17 +02:00
..
.gitignore Ignore gcov/lcov artifacts 2012-04-13 17:52:33 -07:00
adlist.c Fixed many typos. 2013-01-19 10:59:44 +01:00
adlist.h BSD license added to every C source and header file. 2012-11-08 18:31:32 +01:00
ae_epoll.c BSD license added to every C source and header file. 2012-11-08 18:31:32 +01:00
ae_evport.c Fixed many typos. 2013-01-19 10:59:44 +01:00
ae_kqueue.c BSD license added to every C source and header file. 2012-11-08 18:31:32 +01:00
ae_select.c BSD license added to every C source and header file. 2012-11-08 18:31:32 +01:00
ae.c Fixed many typos. 2013-01-19 10:59:44 +01:00
ae.h BSD license added to every C source and header file. 2012-11-08 18:31:32 +01:00
anet.c Tcp keep-alive: send three probes before detectin an error. 2013-02-08 17:06:01 +01:00
anet.h Add SO_KEEPALIVE support to anet.c. 2013-02-08 16:30:26 +01:00
aof.c Config option to turn AOF rewrite incremental fsync on/off. 2013-04-24 10:57:07 +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 Keyspace events: it is now possible to select subclasses of events. 2013-01-28 13:15:12 +01:00
cluster.c Cluster: fix clusterNode.name print format on debug message. 2013-04-19 09:53:43 +02:00
config.c Config option to turn AOF rewrite incremental fsync on/off. 2013-04-24 10:57:07 +02:00
config.h Set proctitle: avoid the use of __attribute__((constructor)). 2013-02-27 11:50:35 +01:00
crc16.c Fixed many typos. 2013-01-19 10:59:44 +01: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 EXPIRE should not resurrect keys. Issue #1026. 2013-03-28 12:45:07 +01:00
debug.c Better DEBUG error message when num of arguments is wrong. 2013-03-28 11:39:29 +01:00
dict.c Fixed many typos. 2013-01-19 10:59:44 +01:00
dict.h Merge pull request #693 from ghurrell/dict-h-typos 2012-10-22 02:55:23 -07: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 Fix config.h endianess detection to work on Linux / PPC64. 2012-12-11 17:01:00 +01:00
fmacros.h Define _XOPEN_SOURCE appropriately on NetBSD. 2012-12-12 10:49:12 -05:00
help.h help.h update (adds bitop, bitcount, evalsha...) 2012-10-30 18:57:20 +01: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
lzf_c.c redis.c split into many different C files. 2010-07-01 14:38:51 +02:00
lzf_d.c redis.c split into many different C files. 2010-07-01 14:38:51 +02:00
lzf.h redis.c split into many different C files. 2010-07-01 14:38:51 +02:00
lzfP.h Fixed many typos. 2013-01-19 10:59:44 +01:00
Makefile use install as default installer (except on SunOS) 2013-03-21 13:32:08 +11:00
Makefile.dep Set process name in ps output to make operations safer. 2013-02-26 11:52:12 +01: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 Transactions: propagate MULTI/EXEC only when needed. 2013-03-26 10:58:10 +01:00
networking.c API to lookup commands with their original name. 2013-03-06 16:28:26 +01:00
notify.c Keyspace notifications: fixed a leak and a bug introduced in the latest commit. 2013-01-28 13:15:16 +01:00
object.c decrRefCount -> decrRefCountVoid in list constructor. 2013-01-28 13:15:08 +01:00
pqsort.c BSD license added to every C source and header file. 2012-11-08 18:31:32 +01:00
pqsort.h BSD license added to every C source and header file. 2012-11-08 18:31:32 +01:00
pubsub.c Removed useless "return" statements in pubsub.c 2013-03-06 16:49:20 +01: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 Throttle BGSAVE attempt on saving error. 2013-04-02 14:05:50 +02:00
rdb.h Fixed many typos. 2013-01-19 10:59:44 +01:00
redis-benchmark.c Fix overflow in mstime() in redis-cli and benchmark. 2012-12-20 15:20:55 +01: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 Fixed many typos. 2013-01-19 10:59:44 +01:00
redis-cli.c redis-cli: raise error on bad command line switch. 2013-04-11 13:17:25 +02:00
redis-trib.rb redis-trib: ClusterNode #info_string output modified. 2013-03-26 18:16:03 +01:00
redis.c Config option to turn AOF rewrite incremental fsync on/off. 2013-04-24 10:57:07 +02:00
redis.h Config option to turn AOF rewrite incremental fsync on/off. 2013-04-24 10:57:07 +02:00
release.c Fixed many typos. 2013-01-19 10:59:44 +01:00
replication.c Cluster: SLAVEOF command not allowed in cluster mode. 2013-03-05 12:39:41 +01:00
rio.c rio.c: added ability to fdatasync() from time to time while writing. 2013-04-24 10:26:30 +02:00
rio.h rio.c: added ability to fdatasync() from time to time while writing. 2013-04-24 10:26:30 +02:00
scripting.c Fixed many typos. 2013-01-19 10:59:44 +01:00
sds.c sds.c: sdssplitargs_free() removed as it was a duplicate. 2013-03-06 12:38:06 +01:00
sds.h sds.c: sdssplitargs_free() removed as it was a duplicate. 2013-03-06 12:38:06 +01:00
sentinel.c Sentinel: always redirect on master->slave transition. 2013-04-24 11:30:17 +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 BSD license added to every C source and header file. 2012-11-08 18:31:32 +01: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 Keyspace events: it is now possible to select subclasses of events. 2013-01-28 13:15:12 +01:00
syncio.c syncio.c read / write functions reworked for correctness and performance. 2012-05-02 22:41:50 +02:00
t_hash.c Removed useless newlines from hashTypeCurrentObject(). 2013-02-15 13:12:55 +01:00
t_list.c Keyspace events: it is now possible to select subclasses of events. 2013-01-28 13:15:12 +01:00
t_set.c retval doesn't initalized 2013-02-05 15:56:04 +08:00
t_string.c Support for case unsensitive SET options. 2013-03-29 10:33:52 +01:00
t_zset.c Z*STORE event fixed: generate del only if resulting sorted set is empty. 2013-01-29 13:50:01 +01:00
testhelp.h BSD license added to every C source and header file. 2012-11-08 18:31:32 +01:00
util.c BSD license added to every C source and header file. 2012-11-08 18:31:32 +01:00
util.h BSD license added to every C source and header file. 2012-11-08 18:31:32 +01:00
valgrind.sup more valgrind friendly test 2011-07-06 15:22:00 +02:00
version.h Version bumped to 2.9.9. 2013-04-02 11:55:23 +02:00
ziplist.c fix comments forgotten in #285 (zipmap -> ziplist) 2013-01-28 11:07:17 +01:00
ziplist.h BSD license added to every C source and header file. 2012-11-08 18:31:32 +01:00
zipmap.c Fixed some spelling errors in the comments 2012-04-07 14:40:29 +02:00
zipmap.h save zipmap encoded hashes as blobs. Work in progress. 2011-02-28 09:56:48 +01:00
zmalloc.c Fixed many typos. 2013-01-19 10:59:44 +01:00
zmalloc.h zmalloc_get_private_dirty() function added (Linux only). 2012-11-19 11:47:35 +01:00