sWarn("vgId:%d, drop heartbeat msg from dnode:%d, because it come from another cluster:%d, differ from current cluster:%d",ths->vgId,DID(&(pMsg->srcId)),CID(&(pMsg->srcId)),CID(&(ths->myRaftId)));
sWarn("vgId:%d, drop heartbeat msg from dnode:%d, because it come from another cluster:%d, differ from current cluster:%d",ths->vgId,DID(&(pMsg->srcId)),CID(&(pMsg->srcId)),CID(&(ths->myRaftId)));
sWarn("vgId:%d, drop RequestVote msg from dnode:%d, because it come from another cluster:%d, differ from current cluster:%d",ths->vgId,DID(&(pMsg->srcId)),CID(&(pMsg->srcId)),CID(&(ths->myRaftId)));
return-1;
}
// if already drop replica, do not process
// if already drop replica, do not process
if(!syncNodeInRaftGroup(ths,&pMsg->srcId)){
if(!syncNodeInRaftGroup(ths,&pMsg->srcId)){
syncLogRecvRequestVote(ths,pMsg,-1,"not in my config");
syncLogRecvRequestVote(ths,pMsg,-1,"not in my config");