charles-dyfis-net/repmgr — comment on commit 0957d02672ca4691b673c4cf3f4fea84c0d43211
File: repmgrd.c line 570
By erlkonig:

So we execute the else on (not (only_one_entry && only_one_entry_desired)), but only_one_entry might have just been cleared in the "if" block, and it doesn't get factored into whether to execute the "else". Is that the plan?