| /redis-3.2.3/tests/integration/ |
| H A D | replication-4.tcl | 13 set master [srv -1 client] 39 assert {[$master dbsize] > 0} 60 set master [srv -1 client] 77 $master set foo bar 83 catch {$master set foo bar} e 94 catch {$master set foo bar} e 102 set master [srv -1 client] 124 $master {*}$cmd 133 assert {[$master dbsize] > 0} 137 $master del myset [all …]
|
| H A D | replication-psync.tcl | 24 set master [srv -1 client] 29 $master config set repl-backlog-size $backlog_size 30 $master config set repl-backlog-ttl $backlog_ttl 31 $master config set repl-diskless-sync $diskless 32 $master config set repl-diskless-sync-delay 1 38 test {Slave should be able to synchronize with the master} { 49 test {Detect write load to master} { 51 [$master dbsize] > 100 83 while {$retry && ([$master debug digest] ne [$slave debug digest])}\ 88 assert {[$master dbsize] > 0} [all …]
|
| H A D | replication.tcl | 14 set master [srv 0 client] 20 $master config set repl-diskless-sync yes 21 $master config set repl-diskless-sync-delay 1000 42 $master debug sleep 10 131 } {master} 143 test {Sync should have transferred keys from master} { 167 test {ROLE in master reports master with a slave} { 170 assert {$role eq {master}} 188 set master [srv 0 client] 189 $master config set repl-diskless-sync $dl [all …]
|
| /redis-3.2.3/src/ |
| H A D | sentinel.c | 597 master->name, master->addr->ip, master->addr->port); in sentinelEvent() 632 if (master && master->notification_script) { in sentinelEvent() 1031 if (master == ri->master) continue; in sentinelTryConnectionSharing() 1207 ri->master = master; in createSentinelRedisInstance() 1552 dict *d[] = {master->slaves, master->sentinels, NULL}; in sentinelPropagateDownAfterPeriod() 1741 master->name, master->parallel_syncs); in rewriteConfigSentinelOption() 1749 master->name, master->notification_script); in rewriteConfigSentinelOption() 1765 master->name, master->auth_pass); in rewriteConfigSentinelOption() 2403 master->addr->ip, master->addr->port, in sentinelProcessHelloMessage() 3632 return master->leader ? sdsnew(master->leader) : NULL; in sentinelVoteLeader() [all …]
|
| H A D | replication.c | 969 server.master = createClient(fd); in replicationCreateMasterClient() 971 server.master->authenticated = 1; in replicationCreateMasterClient() 1730 if (server.master) freeClient(server.master); in replicationSetMaster() 1746 if (server.master) { in replicationUnsetMaster() 1755 freeClient(server.master); in replicationUnsetMaster() 1765 server.master = NULL; in replicationHandleMasterDisconnection() 1868 addReplyLongLong(c,server.master ? server.master->reploff : -1); in roleCommand() 1876 client *c = server.master; in replicationSendAck() 1951 server.master->fd = newfd; in replicationResurrectCachedMaster() 2219 if (server.master) { in replicationGetSlaveOffset() [all …]
|
| H A D | cluster.c | 126 clusterNode *n, *master; in clusterLoadConfig() local 207 if (!master) { in clusterLoadConfig() 211 n->slaveof = master; in clusterLoadConfig() 784 memmove(master->slaves+j,master->slaves+(j+1), in clusterNodeRemoveSlave() 802 master->slaves = zrealloc(master->slaves, in clusterNodeAddSlave() 804 master->slaves[master->numslaves] = slave; in clusterNodeAddSlave() 805 master->numslaves++; in clusterNodeAddSlave() 1790 if (master && sender->slaveof != master) { in clusterProcessPacket() 2119 clusterNode *master; in clusterBuildMessageHdr() local 2583 clusterNode *master; in clusterGetSlaveRank() local [all …]
|
| H A D | redis-trib.rb | 859 master = get_node_by_name(n.info[:replicate]) 860 if !master 863 master.info[:replicas] << n 1322 master = get_node_by_name(opt['master-id']) 1323 if !master 1327 master = get_master_with_least_replicas 1328 xputs "Automatically selected master #{master}" 1350 new.r.cluster("replicate",master.info[:name]) 1381 master = get_master_with_least_replicas 1382 xputs ">>> #{n} as replica of #{master}" [all …]
|
| H A D | server.c | 1545 server.master = NULL; in initServerConfig() 3130 if (server.master) in genRedisInfoString() 3131 slave_repl_offset = server.master->reploff; in genRedisInfoString() 3146 server.master ? in genRedisInfoString() 3147 ((int)(server.unixtime-server.master->lastinteraction)) : -1, in genRedisInfoString()
|
| H A D | db.c | 110 server.current_client != server.master && in lookupKeyReadWithFlags()
|
| /redis-3.2.3/tests/cluster/tests/ |
| H A D | 11-manual-takeover.tcl | 42 assert {[RI 5 role] eq {master}} 43 assert {[RI 6 role] eq {master}} 44 assert {[RI 7 role] eq {master}}
|
| H A D | 03-failover-loop.tcl | 25 if {$role eq {master}} { 41 if {$role eq {master}} { 59 if {$role eq {master}} { 68 if {$role eq {master}} {
|
| H A D | 10-manual-failover.tcl | 79 assert {[RI 5 role] eq {master}} 136 assert {[RI 5 role] eq {master}} 183 [RI 5 role] eq {master}
|
| H A D | 02-failover.tcl | 52 assert {[RI 5 role] eq {master}}
|
| H A D | 08-update-msg.tcl | 61 assert {[RI 5 role] eq {master}}
|
| H A D | 07-replica-migration.tcl | 91 assert {[RI 12 role] eq {master}}
|
| H A D | 05-slave-selection.tcl | 72 [RI 5 role] eq {master}
|
| H A D | 04-resharding.tcl | 156 if {[lindex $srole 0] eq {master}} continue
|
| /redis-3.2.3/tests/sentinel/tests/ |
| H A D | 07-down-conditions.tcl | 7 [dict get [S 4 sentinel master mymaster] flags] eq "master" 16 [dict get [S 4 sentinel master mymaster] flags]]
|
| H A D | 00-base.tcl | 29 assert {[RI $master_id role] eq {master}} 125 assert {[RI $master_id role] eq {master}}
|
| H A D | 01-conf-update.tcl | 38 assert {[RI $master_id role] eq {master}}
|
| H A D | 05-manual.tcl | 23 assert {[RI $master_id role] eq {master}}
|
| /redis-3.2.3/tests/sentinel/tests/includes/ |
| H A D | init-tests.tcl | 36 assert {[S $id sentinel master mymaster] ne {}}
|
| /redis-3.2.3/ |
| H A D | 00-RELEASENOTES | 61 a slave is able to fail over its master reducing certain delays. 120 Ability of slave to announce arbitrary ip/port to master. 136 Sentinel: new test unit 07 that tests master down conditions. 168 Sentinel: fix cross-master Sentinel address update. 251 to the inability to talk with the old master at all. 303 pending commands properly, so the master appeared fovever down. 1148 1/5 of all the cluster slots from master 0 to the other 4 masters and 1149 back into the original master. 1162 Before this fix, after a complete resharding of a master slots 1163 to other nodes, the master remains empty and the slaves migrate away [all …]
|
| /redis-3.2.3/tests/unit/ |
| H A D | aofrw.tcl | 9 set master [srv 0 client]
|
| /redis-3.2.3/deps/hiredis/ |
| H A D | README.md | 355 For example, [hiredis-rb](https://github.com/pietern/hiredis-rb/blob/master/ext/hiredis_ext/reader.…
|