[DOCS-553] rs.add("host:port", x) - x determines whether or not the host is an arbiter Created: 25/Sep/12  Updated: 28/May/15  Resolved: 27/Sep/12

Status: Closed
Project: Documentation
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: Jenna deBoisblanc Assignee: Sam Kleinman (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
Participants:
Days since reply: 11 years, 20 weeks, 6 days ago

 Description   

rs.add({<host>,

{priority: 1}

)

added the host as an arbiter, rather than a member of the replica set with priority 1. The second argument of rs.add() is a boolean that determines whether or not the host will be arbiterOnly. The object

{priority:1}

resolved to true, causing confusion (and the server didn't throw an error message).

A note in the docs about this boolean argument might be helpful.



 Comments   
Comment by auto [ 27/Sep/12 ]

Author:

{u'date': u'2012-09-27T09:31:35-07:00', u'email': u'samk@10gen.com', u'name': u'Sam Kleinman'}

Message: DOCS-553 arguments that are boolean evaluate some documents to true.
Branch: master
https://github.com/mongodb/docs/commit/56aec3c8cdab70527b297823bac780c20ef6234e

Generated at Thu Feb 08 07:38:57 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.