Master lookup by name */
| 1519 | |
| 1520 | /* Master lookup by name */ |
| 1521 | sentinelRedisInstance *sentinelGetMasterByName(char *name) { |
| 1522 | sentinelRedisInstance *ri; |
| 1523 | sds sdsname = sdsnew(name); |
| 1524 | |
| 1525 | ri = (sentinelRedisInstance*)dictFetchValue(sentinel.masters,sdsname); |
| 1526 | sdsfree(sdsname); |
| 1527 | return ri; |
| 1528 | } |
| 1529 | |
| 1530 | /* Add the specified flags to all the instances in the specified dictionary. */ |
| 1531 | void sentinelAddFlagsToDictOfRedisInstances(dict *instances, int flags) { |
no test coverage detected