| 624 | * -------------------------------------------------------------------------- */ |
| 625 | |
| 626 | clusterLink *createClusterLink(clusterNode *node) { |
| 627 | clusterLink *link = zmalloc(sizeof(*link)); |
| 628 | link->ctime = mstime(); |
| 629 | link->sndbuf = sdsempty(); |
| 630 | link->rcvbuf = zmalloc(link->rcvbuf_alloc = RCVBUF_INIT_LEN); |
| 631 | link->rcvbuf_len = 0; |
| 632 | link->node = node; |
| 633 | link->conn = NULL; |
| 634 | return link; |
| 635 | } |
| 636 | |
| 637 | /* Free a cluster link, but does not free the associated node of course. |
| 638 | * This function will just make sure that the original node associated |
no test coverage detected