Add a node to the nodes hash table */
| 974 | |
| 975 | /* Add a node to the nodes hash table */ |
| 976 | void clusterAddNode(clusterNode *node) { |
| 977 | int retval; |
| 978 | |
| 979 | retval = dictAdd(server.cluster->nodes, |
| 980 | sdsnewlen(node->name,CLUSTER_NAMELEN), node); |
| 981 | serverAssert(retval == DICT_OK); |
| 982 | } |
| 983 | |
| 984 | /* Remove a node from the cluster. The function performs the high level |
| 985 | * cleanup, calling freeClusterNode() for the low level cleanup. |
no test coverage detected