Add a node to the nodes hash table */
| 1013 | |
| 1014 | /* Add a node to the nodes hash table */ |
| 1015 | void clusterAddNode(clusterNode *node) { |
| 1016 | int retval; |
| 1017 | |
| 1018 | retval = dictAdd(g_pserver->cluster->nodes, |
| 1019 | sdsnewlen(node->name,CLUSTER_NAMELEN), node); |
| 1020 | serverAssert(retval == DICT_OK); |
| 1021 | } |
| 1022 | |
| 1023 | /* Remove a node from the cluster. The function performs the high level |
| 1024 | * cleanup, calling freeClusterNode() for the low level cleanup. |
no test coverage detected