Home
last modified time | relevance | path

Searched refs:REDIS_NODE_ROLE_MASTER (Results 1 – 2 of 2) sorted by relevance

/dports/www/nginx-full/nchan-1.2.12/src/store/redis/
H A Dredis_nodeset.c460 if(cur->state >= REDIS_NODE_READY && cur->role == REDIS_NODE_ROLE_MASTER) { in nodeset_node_find_any_ready_master()
550 if(node->role == REDIS_NODE_ROLE_MASTER) { in node_ping_event()
792 if(master->role != REDIS_NODE_ROLE_MASTER && master->state > REDIS_NODE_GET_INFO) { in node_discover_master()
804 node_set_role(master, REDIS_NODE_ROLE_MASTER); in node_discover_master()
889 node_set_role(peer, l->master ? REDIS_NODE_ROLE_MASTER : REDIS_NODE_ROLE_SLAVE); in node_discover_cluster_peer()
1021 case REDIS_NODE_ROLE_MASTER: in node_set_role()
1485 node_set_role(node, REDIS_NODE_ROLE_MASTER); in node_connector_callback()
1685 if(rangenode->node->role != REDIS_NODE_ROLE_MASTER) { in nodeset_cluster_keyslot_space_complete()
1925 if(cur->role == REDIS_NODE_ROLE_MASTER) { in nodeset_examine()
1945 if(cur->role == REDIS_NODE_ROLE_MASTER) { in nodeset_examine()
[all …]
H A Dredis_nodeset.h83 REDIS_NODE_ROLE_UNKNOWN = 0, REDIS_NODE_ROLE_MASTER, REDIS_NODE_ROLE_SLAVE enumerator