提交 c50a85e9 编写于 作者: M Minglei Jin

sync/cleanup: remove unused ip checking

上级 c7769d25
......@@ -876,7 +876,6 @@ static void syncRestartPeer(SSyncPeer *pPeer) {
}
void syncRestartConnection(SSyncPeer *pPeer) {
//if (pPeer->ip == 0) return;
if (pPeer->fqdn[0] == '\0') return;
if (syncAcquirePeer(pPeer->rid) == NULL) return;
......@@ -891,7 +890,6 @@ static void syncProcessSyncRequest(char *msg, SSyncPeer *pPeer) {
SSyncNode *pNode = pPeer->pSyncNode;
sInfo("%s, sync-req is received", pPeer->id);
//if (pPeer->ip == 0) return;
if (pPeer->fqdn[0] == '\0') return;
if (nodeRole != TAOS_SYNC_ROLE_MASTER) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册