clusterSendPing 中的疑问

作者: lebron374创建于 2018年6月22日更新于 2021年4月17日

Here, in the while loop, gossipcount ranges from 0 to 3, and shouldn't it send information about 3 nodes? Also, will the operation of gossip = &(hdr->data.ping.gossip[gossipcount]) contaminate the following memory? After all, the size of the gossip array is 1.

内容来源: huangzworks/redis-3.0-annotated