[SERVER-14686] Shell should be able to connect to replica primary automatically Created: 25/Jul/14  Updated: 25/Jul/14  Resolved: 25/Jul/14

Status: Closed
Project: Core Server
Component/s: Shell
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: Charlie Page Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates SERVER-3300 MongoURI support for connecting to a ... Closed
Related
related to DOCS-3824 Document that 'mongo --host' can take... Closed
Participants:

 Description   

Currently a script or something like:
mongo --host `mongo 127.0.0.1:27019 --quiet --eval "db.isMaster()['primary']"`
is needed.

An option, such as --primary, would be preferable.



 Comments   
Comment by J Rassi [ 25/Jul/14 ]

Filed DOCS-3824.

Comment by Scott Hernandez (Inactive) [ 25/Jul/14 ]

You can already connect to the primary automatically using this form, with a replica set connection:

mongo --host setName/seed-list 

Also, this duplicates the request to use a uri: SERVER-3300

Generated at Thu Feb 08 03:35:39 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.