Correctly discover new primary and promote it from exiting secondary if needed