-
Type: Task
-
Resolution: Works as Designed
-
Priority: Major - P3
-
Affects Version/s: None
-
Labels:None
Description
In a rs, I was trying to force the secondary I was connected to, to become primary. The process listed at https://docs.mongodb.com/manual/tutorial/force-member-to-be-primary/#force-a-member-to-be-primary-using-database-commands seem unnecessarily laborious when one can simply run one command:
rs:SECONDARY> db.adminCommand({replSetStepUp: 86400, force: 1})
{ "ok" : 1, ... }
rs:PRIMARY>