Lines Matching refs:slaves

192     dict *slaves;       /* Slaves for this master instance. */  member
1169 else if (flags & SRI_SLAVE) table = master->slaves; in createSentinelRedisInstance()
1208 ri->slaves = dictCreate(&instancesDictType,NULL); in createSentinelRedisInstance()
1242 dictRelease(ri->slaves); in releaseSentinelRedisInstance()
1276 slave = dictFetchValue(ri->slaves,key); in sentinelRedisInstanceLookupSlave()
1400 dictRelease(ri->slaves); in sentinelResetMaster()
1401 ri->slaves = dictCreate(&instancesDictType,NULL); in sentinelResetMaster()
1462 sentinelAddr **slaves = NULL; in sentinelResetMasterAndChangeAddress() local
1472 di = dictGetIterator(master->slaves); in sentinelResetMasterAndChangeAddress()
1477 slaves = zrealloc(slaves,sizeof(sentinelAddr*)*(numslaves+1)); in sentinelResetMasterAndChangeAddress()
1478 slaves[numslaves++] = createSentinelAddr(slave->addr->ip, in sentinelResetMasterAndChangeAddress()
1487 slaves = zrealloc(slaves,sizeof(sentinelAddr*)*(numslaves+1)); in sentinelResetMasterAndChangeAddress()
1488 slaves[numslaves++] = createSentinelAddr(master->addr->ip, in sentinelResetMasterAndChangeAddress()
1503 slave = createSentinelRedisInstance(NULL,SRI_SLAVE,slaves[j]->ip, in sentinelResetMasterAndChangeAddress()
1504 slaves[j]->port, master->quorum, master); in sentinelResetMasterAndChangeAddress()
1505 releaseSentinelAddr(slaves[j]); in sentinelResetMasterAndChangeAddress()
1508 zfree(slaves); in sentinelResetMasterAndChangeAddress()
1552 dict *d[] = {master->slaves, master->sentinels, NULL}; in sentinelPropagateDownAfterPeriod()
1782 di2 = dictGetIterator(master->slaves); in rewriteConfigSentinelOption()
2533 sentinelForceHelloUpdateDictOfRedisInstances(master->slaves); in sentinelForceHelloUpdateForMaster()
2745 addReplyBulkLongLong(c,dictSize(ri->slaves)); in addReplySentinelRedisInstance()
2902 addReplyDictOfRedisInstances(c,ri->slaves); in sentinelCommand()
3138 addReplyMultiBulkLen(c,dictSize(ri->slaves) + 1); /* +1 for self */ in sentinelCommand()
3148 sdi = dictGetIterator(ri->slaves); in sentinelCommand()
3265 dictSize(ri->slaves), in sentinelInfoCommand()
3912 zmalloc(sizeof(instance[0])*dictSize(master->slaves)); in sentinelSelectSlave()
3923 di = dictGetIterator(master->slaves); in sentinelSelectSlave()
4057 di = dictGetIterator(master->slaves); in sentinelFailoverDetectEnd()
4087 di = dictGetIterator(master->slaves); in sentinelFailoverDetectEnd()
4114 di = dictGetIterator(master->slaves); in sentinelFailoverReconfNextSlave()
4123 di = dictGetIterator(master->slaves); in sentinelFailoverReconfNextSlave()
4278 sentinelHandleDictOfRedisInstances(ri->slaves); in sentinelHandleDictOfRedisInstances()