Lines Matching refs:SRI_SLAVE
55 #define SRI_SLAVE (1<<1) macro
1151 serverAssert(flags & (SRI_MASTER|SRI_SLAVE|SRI_SENTINEL)); in createSentinelRedisInstance()
1159 if (flags & SRI_SLAVE) { in createSentinelRedisInstance()
1169 else if (flags & SRI_SLAVE) table = master->slaves; in createSentinelRedisInstance()
1226 ri->role_reported = ri->flags & (SRI_MASTER|SRI_SLAVE); in createSentinelRedisInstance()
1259 if ((ri->flags & SRI_SLAVE) && (ri->flags & SRI_PROMOTED) && ri->master) in releaseSentinelRedisInstance()
1284 else if (ri->flags & SRI_SLAVE) return "slave"; in sentinelRedisInstanceTypeStr()
1503 slave = createSentinelRedisInstance(NULL,SRI_SLAVE,slaves[j]->ip, in sentinelResetMasterAndChangeAddress()
1566 else if (ri->flags & SRI_SLAVE) return "slave"; in sentinelGetInstanceTypeString()
1659 if ((slave = createSentinelRedisInstance(NULL,SRI_SLAVE,argv[2], in sentinelHandleConfiguration()
1936 if ((ri->flags & (SRI_MASTER|SRI_SLAVE)) && link->pc == NULL) { in sentinelReconnectInstance()
2051 if ((slave = createSentinelRedisInstance(NULL,SRI_SLAVE,ip, in sentinelRefreshInstanceInfo()
2069 else if (!memcmp(l,"role:slave",10)) role = SRI_SLAVE; in sentinelRefreshInstanceInfo()
2071 if (role == SRI_SLAVE) { in sentinelRefreshInstanceInfo()
2121 if (role == SRI_SLAVE) ri->slave_conf_change_time = mstime(); in sentinelRefreshInstanceInfo()
2125 ((ri->flags & (SRI_MASTER|SRI_SLAVE)) == role) ? in sentinelRefreshInstanceInfo()
2137 if ((ri->flags & SRI_MASTER) && role == SRI_SLAVE) { in sentinelRefreshInstanceInfo()
2144 if ((ri->flags & SRI_SLAVE) && role == SRI_MASTER) { in sentinelRefreshInstanceInfo()
2191 if ((ri->flags & SRI_SLAVE) && in sentinelRefreshInstanceInfo()
2192 role == SRI_SLAVE && in sentinelRefreshInstanceInfo()
2214 if ((ri->flags & SRI_SLAVE) && role == SRI_SLAVE && in sentinelRefreshInstanceInfo()
2587 if ((ri->flags & SRI_SLAVE) && in sentinelSendPeriodicCommands()
2663 if (ri->flags & SRI_SLAVE) flags = sdscat(flags,"slave,"); in addReplySentinelRedisInstance()
2723 if (ri->flags & (SRI_MASTER|SRI_SLAVE)) { in addReplySentinelRedisInstance()
2778 if (ri->flags & SRI_SLAVE) { in addReplySentinelRedisInstance()
3446 ri->role_reported == SRI_SLAVE && in sentinelCheckSubjectivelyDown()
4250 if (ri->flags & (SRI_MASTER|SRI_SLAVE)) { in sentinelHandleRedisInstance()