svn: /phpdoc/en/trunk/reference/mongo/ connecting.xml mongoclient/construct.xml mongoclient.xml
| From: | Derick Rethans | Date: | Mon, 20 May 2013 17:57:41 +0000 |
| Subject: | svn: /phpdoc/en/trunk/reference/mongo/ connecting.xml mongoclient/construct.xml mongoclient.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-11315@lists.php.net to get a copy of this message | ||
derick Mon, 20 May 2013 17:57:41 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=330303
Log:
Fixed PHP-314: Improve connection string documentation/pooling.
Changed paths:
U phpdoc/en/trunk/reference/mongo/connecting.xml
U phpdoc/en/trunk/reference/mongo/mongoclient/construct.xml
U phpdoc/en/trunk/reference/mongo/mongoclient.xml
Modified: phpdoc/en/trunk/reference/mongo/connecting.xml
===================================================================
--- phpdoc/en/trunk/reference/mongo/connecting.xml 2013-05-20 17:57:22 UTC (rev 330302)
+++ phpdoc/en/trunk/reference/mongo/connecting.xml 2013-05-20 17:57:41 UTC (rev 330303)
@@ -100,6 +100,16 @@
server from each of your datacenters.
</para>
</tip>
+ <warning>
+ <para>
+ The host names that you specify here <emphasis>must</emphasis> match the
+ names as given in the replica set configuration because the driver uses the
+ name as specified in the replica set configuration as identifier in its
+ internal mapping. Specifying (for example) the IP address instead of the
+ configured host name makes that the driver keeps a connection for both the
+ host name and its accompanying IP address.
+ </para>
+ </warning>
<para>
If the primary becomes unavailable, an election will take place and a
secondary will be promoted to the role of primary (unless a majority vote
Modified: phpdoc/en/trunk/reference/mongo/mongoclient/construct.xml
===================================================================
--- phpdoc/en/trunk/reference/mongo/mongoclient/construct.xml 2013-05-20 17:57:22 UTC (rev 330302)
+++ phpdoc/en/trunk/reference/mongo/mongoclient/construct.xml 2013-05-20 17:57:41 UTC (rev 330303)
@@ -39,10 +39,12 @@
</para>
<para>
At least one host must be given (port optional, always defaulting to 27017)
- and as many hosts as desired may be connected to. Host names are
+ and as many hosts as desired may be connected to. Host names are
comma-separated and the constructor will return successfully if it connected
to at least one host. If it could not connect to any of the hosts, it will
- throw a <classname>MongoConnectionException</classname>.
+ throw a <classname>MongoConnectionException</classname>. Please see the
+ <link linkend="mongo.connecting.rs">Replica Sets</link> section for
+ information on how to connect to Replica Sets.
</para>
<para>
If you specified a username and password, you may specify a database to
Modified: phpdoc/en/trunk/reference/mongo/mongoclient.xml
===================================================================
--- phpdoc/en/trunk/reference/mongo/mongoclient.xml 2013-05-20 17:57:22 UTC (rev 330302)
+++ phpdoc/en/trunk/reference/mongo/mongoclient.xml 2013-05-20 17:57:41 UTC (rev 330303)
@@ -11,7 +11,7 @@
<section xml:id="mongoclient.intro">
&reftitle.intro;
<para>
- A connection between PHP and MongoDB.
+ A connection manager for PHP and MongoDB.
</para>
<para>
This class is used to create and manage connections. A typical use is:
@@ -145,8 +145,8 @@
<term><constant>MongoClient::VERSION</constant></term>
<listitem>
<simpara>
- PHP driver version. May be suffixed with "+" or "-" if it is in-between
- versions.
+ PHP driver version. May be suffixed with "dev", "+" or "-" if
it is
+ in-between versions.
</simpara>
</listitem>
</varlistentry>