Lines Matching refs:SRI_MASTER

54 #define SRI_MASTER  (1<<0)  macro
590 sentinelRedisInstance *master = (ri->flags & SRI_MASTER) ? in sentinelEvent()
630 sentinelRedisInstance *master = (ri->flags & SRI_MASTER) ? in sentinelEvent()
1151 serverAssert(flags & (SRI_MASTER|SRI_SLAVE|SRI_SENTINEL)); in createSentinelRedisInstance()
1152 serverAssert((flags & SRI_MASTER) || master != NULL); in createSentinelRedisInstance()
1168 if (flags & SRI_MASTER) table = sentinel.masters; in createSentinelRedisInstance()
1226 ri->role_reported = ri->flags & (SRI_MASTER|SRI_SLAVE); in createSentinelRedisInstance()
1273 serverAssert(ri->flags & SRI_MASTER); in sentinelRedisInstanceLookupSlave()
1283 if (ri->flags & SRI_MASTER) return "master"; in sentinelRedisInstanceTypeStr()
1399 serverAssert(ri->flags & SRI_MASTER); in sentinelResetMaster()
1408 ri->flags &= SRI_MASTER; in sentinelResetMaster()
1426 ri->role_reported = SRI_MASTER; in sentinelResetMaster()
1565 if (ri->flags & SRI_MASTER) return "master"; in sentinelGetInstanceTypeString()
1580 if (createSentinelRedisInstance(argv[1],SRI_MASTER,argv[2], in sentinelHandleConfiguration()
1874 char *auth_pass = (ri->flags & SRI_MASTER) ? ri->auth_pass : in sentinelSendAuthIfNeeded()
1936 if ((ri->flags & (SRI_MASTER|SRI_SLAVE)) && link->pc == NULL) { in sentinelReconnectInstance()
1981 master->flags & SRI_MASTER && in sentinelMasterLooksSane()
1982 master->role_reported == SRI_MASTER && in sentinelMasterLooksSane()
2022 if ((ri->flags & SRI_MASTER) && in sentinelRefreshInstanceInfo()
2068 if (!memcmp(l,"role:master",11)) role = SRI_MASTER; in sentinelRefreshInstanceInfo()
2125 ((ri->flags & (SRI_MASTER|SRI_SLAVE)) == role) ? in sentinelRefreshInstanceInfo()
2128 role == SRI_MASTER ? "master" : "slave", in sentinelRefreshInstanceInfo()
2129 ri->flags & SRI_MASTER ? "master" : "slave"); in sentinelRefreshInstanceInfo()
2137 if ((ri->flags & SRI_MASTER) && role == SRI_SLAVE) { in sentinelRefreshInstanceInfo()
2144 if ((ri->flags & SRI_SLAVE) && role == SRI_MASTER) { in sentinelRefreshInstanceInfo()
2471 sentinelRedisInstance *master = (ri->flags & SRI_MASTER) ? ri : ri->master; in sentinelSendHello()
2529 if (!(master->flags & SRI_MASTER)) return C_ERR; in sentinelForceHelloUpdateForMaster()
2662 if (ri->flags & SRI_MASTER) flags = sdscat(flags,"master,"); in addReplySentinelRedisInstance()
2723 if (ri->flags & (SRI_MASTER|SRI_SLAVE)) { in addReplySentinelRedisInstance()
2729 addReplyBulkCString(c, (ri->role_reported == SRI_MASTER) ? "master" : in addReplySentinelRedisInstance()
2739 if (ri->flags & SRI_MASTER) { in addReplySentinelRedisInstance()
2947 (ri->flags & SRI_MASTER)) in sentinelCommand()
2952 if (ri && ri->flags & SRI_MASTER && strcasecmp(c->argv[5]->ptr,"*")) { in sentinelCommand()
3035 ri = createSentinelRedisInstance(c->argv[2]->ptr,SRI_MASTER, in sentinelCommand()
3445 (ri->flags & SRI_MASTER && in sentinelCheckSubjectivelyDown()
3797 serverAssert(master->flags & SRI_MASTER); in sentinelStartFailover()
4183 serverAssert(ri->flags & SRI_MASTER); in sentinelFailoverStateMachine()
4250 if (ri->flags & (SRI_MASTER|SRI_SLAVE)) { in sentinelHandleRedisInstance()
4255 if (ri->flags & SRI_MASTER) { in sentinelHandleRedisInstance()
4277 if (ri->flags & SRI_MASTER) { in sentinelHandleDictOfRedisInstances()