Migrate Connections Page to Manual (DOCS-398)

[DOCS-13] Connection string documention has incorrect example Created: 01/Dec/10  Updated: 14/Nov/12  Resolved: 02/Nov/12

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

Type: Sub-task Priority: Minor - P4
Reporter: J W Lee Assignee: Bob Grabar
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:
Days since reply: 11 years, 15 weeks, 5 days ago

 Description   

According to http://www.mongodb.org/display/DOCS/Connections the delimiter for connection string options is ';' and '&' but the examples below it uses ',' as a delimiter which contradicts the syntax.

Says:
Connect to the first server to respond, whether or not it is part of a replica set or primary or secondary:

mongodb://host1,host2,host3/?connect=direct,slaveok=true

Should be:
Connect to the first server to respond, whether or not it is part of a replica set or primary or secondary:

mongodb://host1,host2,host3/?connect=direct;slaveok=true

Says:
Connect to a replica set with safe mode on, waiting for replication to succeed on at least two machines, with a two second timeout:

mongodb://host1,host2,host3/?safe=true,w=2,wtimeout=2000

Should be:
Connect to a replica set with safe mode on, waiting for replication to succeed on at least two machines, with a two second timeout:

mongodb://host1,host2,host3/?safe=true;w=2;wtimeout=2000



 Comments   
Comment by Bob Grabar [ 02/Nov/12 ]

This is fixed in the following pull request:
https://github.com/mongodb/docs/pull/362
When this is merged, we'll have a manual page with correct examples, and the wiki page will be redirected to that page.

Comment by Sam Kleinman (Inactive) [ 13/Aug/12 ]

We should talk to someone on the driver team to make sure that drivers
actually respect this consistently. Also concern for how this interacts
with changing read preference specs.


Sam Kleinman
samk@10gen.com

Comment by Ed Costello [ 13/Aug/12 ]

This appears to have been fixed in the wiki page, has not been ported over to the manual yet.

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