qdb_warn("Non-voting "<<req.candidate.toString()<<" is requesting a vote, even though it is not a voting member of the cluster as far I know.");
RaftStateSnapshotPtrsnapshot=state.getSnapshot();
if(!snapshot->leader.empty()){
qdb_misconfig("Non-voting "<<req.candidate.toString()<<" attempted to disrupt the cluster by starting an election for term "<<req.term<<". Ignoring its request - shut down that node!");
return{snapshot->term,RaftVote::VETO};
}
qdb_warn("Non-voting "<<req.candidate.toString()<<" is requesting a vote, even though it is not a voting member of the cluster as far I know. Will still process its request, since I have no leader.");