prevent startup problem when mongo primary is switched while starting