mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Added info on non-replicasets with 1.2.10.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@324902 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
6b57d9e6f5
commit
a7e22b7fb8
1 changed files with 46 additions and 2 deletions
|
@ -15,8 +15,10 @@
|
|||
</methodsynopsis>
|
||||
|
||||
<para>
|
||||
This method can only be used with a connection to a replica set. It returns
|
||||
the status of all of the hosts in the set.
|
||||
This method is only useful with a connection to a replica set. It returns
|
||||
the status of all of the hosts in the set. Without a replica set, it will
|
||||
just return an array with one element containing the host that you are
|
||||
connected to.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
|
@ -44,6 +46,10 @@
|
|||
array(2) {
|
||||
["A:27017"]=>
|
||||
array(4) {
|
||||
["host"]=>
|
||||
"A"
|
||||
["port"]=>
|
||||
27017
|
||||
["health"]=>
|
||||
int(1)
|
||||
["state"]=>
|
||||
|
@ -55,6 +61,10 @@ array(2) {
|
|||
}
|
||||
["B:27017"]=>
|
||||
array(4) {
|
||||
["host"]=>
|
||||
"B"
|
||||
["port"]=>
|
||||
27017
|
||||
["health"]=>
|
||||
int(1)
|
||||
["state"]=>
|
||||
|
@ -66,6 +76,10 @@ array(2) {
|
|||
}
|
||||
["C:27017"]=>
|
||||
array(4) {
|
||||
["host"]=>
|
||||
"C"
|
||||
["port"]=>
|
||||
27017
|
||||
["health"]=>
|
||||
int(1)
|
||||
["state"]=>
|
||||
|
@ -84,6 +98,36 @@ array(2) {
|
|||
thus is likely closer or handling less load) than C.
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="changelog">
|
||||
&reftitle.changelog;
|
||||
<para>
|
||||
<informaltable>
|
||||
<tgroup cols="2">
|
||||
<thead>
|
||||
<row>
|
||||
<entry>&Version;</entry>
|
||||
<entry>&Description;</entry>
|
||||
</row>
|
||||
</thead>
|
||||
<tbody>
|
||||
<row>
|
||||
<entry>1.2.10</entry>
|
||||
<entry>
|
||||
<para>
|
||||
Support for non-replicasets was added.
|
||||
</para>
|
||||
<para>
|
||||
The returned array elements now also include the
|
||||
<literal>hostname</literal> and <literal>port</literal>.
|
||||
</para>
|
||||
</entry>
|
||||
</row>
|
||||
</tbody>
|
||||
</tgroup>
|
||||
</informaltable>
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
|
Loading…
Reference in a new issue