Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MongoPool is gone, as well as the pairing functions

Also added the read preference setters/getters
  • Loading branch information...
commit 91c4f710f630829f054712046fd5b17103f83152 1 parent 93920e5
@bjori bjori authored derickr committed
Showing with 12 additions and 15 deletions.
  1. +12 −15 tests/others/php-270-arginfo.phpt
View
27 tests/others/php-270-arginfo.phpt
@@ -7,7 +7,6 @@ $classes = array(
'MongoDB',
'MongoCollection',
'MongoCursor',
- 'MongoPool',
);
foreach ($classes as $class) {
echo $class, "\n";
@@ -29,9 +28,6 @@ Mongo
0: server (optional)
1: options (optional)
Method connect expects 0 parameters
- Method pairConnect expects 0 parameters
- Method persistConnect expects 0 parameters
- Method pairPersistConnect expects 0 parameters
Method connectUtil expects 0 parameters
Method __toString expects 0 parameters
Method __get expects 1 parameters
@@ -44,6 +40,10 @@ Mongo
Method getSlaveOkay expects 0 parameters
Method setSlaveOkay expects 1 parameters
0: slave_okay (optional)
+ Method getReadPreference expects 0 parameters
+ Method setReadPreference expects 2 parameters
+ 0: read_preference
+ 1: tags (optional)
Method dropDB expects 1 parameters
0: MongoDB_object_OR_database_name
Method lastError expects 0 parameters
@@ -55,11 +55,6 @@ Mongo
Method getSlave expects 0 parameters
Method switchSlave expects 0 parameters
Method close expects 0 parameters
- Method setPoolSize expects 1 parameters
- 0: maximum_pool_size
- Method getPoolSize expects 0 parameters
- Method poolDebug expects 0 parameters
- Method serverInfo expects 0 parameters
MongoDB
Method __construct expects 2 parameters
@@ -73,6 +68,10 @@ MongoDB
Method getSlaveOkay expects 0 parameters
Method setSlaveOkay expects 1 parameters
0: slave_okay (optional)
+ Method getReadPreference expects 0 parameters
+ Method setReadPreference expects 2 parameters
+ 0: read_preference
+ 1: tags (optional)
Method getProfilingLevel expects 0 parameters
Method setProfilingLevel expects 1 parameters
0: level
@@ -123,6 +122,10 @@ MongoCollection
Method getSlaveOkay expects 0 parameters
Method setSlaveOkay expects 1 parameters
0: slave_okay (optional)
+ Method getReadPreference expects 0 parameters
+ Method setReadPreference expects 2 parameters
+ 0: read_preference
+ 1: tags (optional)
Method drop expects 0 parameters
Method validate expects 1 parameters
0: validate (optional)
@@ -224,9 +227,3 @@ MongoCursor
Method reset expects 0 parameters
Method count expects 1 parameters
0: foundOnly (optional)
-
-MongoPool
- Method info expects 0 parameters
- Method setSize expects 1 parameters
- 0: maximum_pool_size
- Method getSize expects 0 parameters

2 comments on commit 91c4f71

@cppexpert

Could you guys please tell me why MongoPool was removed and what class I should use instead ? Thanks !

@bjori
Owner

Pooling doesn't make sense for PHP due the way PHP works.
The entire mechanism has been removed, and the connection handling completely rewritten in 1.3.0.

We will be adding back MongoPool and couple of the other methods for backwards compatibility, but they won't do anything and just issue E_DEPRECATED warning :)

-Hannes

Please sign in to comment.
Something went wrong with that request. Please try again.