Lines Matching refs:runid

166     char *runid;    /* Run ID of this instance, or unique ID if is a Sentinel.*/  member
377 …Instance *getSentinelRedisInstanceByAddrAndRunID(dict *instances, char *ip, int port, char *runid);
1023 if (ri->runid == NULL) return C_ERR; /* No way to identify it. */ in sentinelTryConnectionSharing()
1033 NULL,0,ri->runid); in sentinelTryConnectionSharing()
1064 NULL,0,ri->runid); in sentinelUpdateSentinelAddressInAllMasters()
1185 ri->runid = NULL; in createSentinelRedisInstance()
1249 sdsfree(ri->runid); in releaseSentinelRedisInstance()
1300 int removeMatchingSentinelFromMaster(sentinelRedisInstance *master, char *runid) { in removeMatchingSentinelFromMaster() argument
1305 if (runid == NULL) return 0; in removeMatchingSentinelFromMaster()
1311 if (ri->runid && strcmp(ri->runid,runid) == 0) { in removeMatchingSentinelFromMaster()
1326 …nstance *getSentinelRedisInstanceByAddrAndRunID(dict *instances, char *ip, int port, char *runid) { in getSentinelRedisInstanceByAddrAndRunID() argument
1331 serverAssert(ip || runid); /* User must pass at least one search param. */ in getSentinelRedisInstanceByAddrAndRunID()
1336 if (runid && !ri->runid) continue; in getSentinelRedisInstanceByAddrAndRunID()
1337 if ((runid == NULL || strcmp(ri->runid, runid) == 0) && in getSentinelRedisInstanceByAddrAndRunID()
1417 sdsfree(ri->runid); in sentinelResetMaster()
1419 ri->runid = NULL; in sentinelResetMaster()
1677 si->runid = sdsnew(argv[4]); in sentinelHandleConfiguration()
1807 if (ri->runid == NULL) continue; in rewriteConfigSentinelOption()
1810 master->name, ri->addr->ip, ri->addr->port, ri->runid); in rewriteConfigSentinelOption()
2009 if (ri->runid == NULL) { in sentinelRefreshInstanceInfo()
2010 ri->runid = sdsnewlen(l+7,40); in sentinelRefreshInstanceInfo()
2012 if (strncmp(ri->runid,l+7,40) != 0) { in sentinelRefreshInstanceInfo()
2014 sdsfree(ri->runid); in sentinelRefreshInstanceInfo()
2015 ri->runid = sdsnewlen(l+7,40); in sentinelRefreshInstanceInfo()
2376 si->runid = sdsnew(token[2]); in sentinelProcessHelloMessage()
2656 addReplyBulkCString(c,ri->runid ? ri->runid : ""); in addReplySentinelRedisInstance()
3636 char *runid; member
3642 int sentinelLeaderIncr(dict *counters, char *runid) { in sentinelLeaderIncr() argument
3643 dictEntry *de = dictFind(counters,runid); in sentinelLeaderIncr()
3651 de = dictAddRaw(counters,runid); in sentinelLeaderIncr()
3902 sa_runid = (*sa)->runid; in compareSlavesForPromotion()
3903 sb_runid = (*sb)->runid; in compareSlavesForPromotion()