lib/Mongo/MongoClient.php 1 location
|
@@ 407-410 (lines=4) @@
|
404 |
|
unset($urlOptions['wTimeout']); |
405 |
|
} |
406 |
|
|
407 |
|
if (isset($options['wTimeout'])) { |
408 |
|
$options['wTimeoutMS'] = $options['wTimeout']; |
409 |
|
unset($options['wTimeout']); |
410 |
|
} |
411 |
|
|
412 |
|
if (isset($options['readPreferenceTags'])) { |
413 |
|
$options['readPreferenceTags'] = [$this->getReadPreferenceTags($options['readPreferenceTags'])]; |
lib/Mongo/MongoCollection.php 1 location
|
@@ 957-959 (lines=3) @@
|
954 |
|
$options['w'] = ($options['safe']) ? 1 : 0; |
955 |
|
} |
956 |
|
|
957 |
|
if (isset($options['wtimeout']) && !isset($options['wTimeoutMS'])) { |
958 |
|
$options['wTimeoutMS'] = $options['wtimeout']; |
959 |
|
} |
960 |
|
|
961 |
|
if (isset($options['w']) || !isset($options['wTimeoutMS'])) { |
962 |
|
$collectionWriteConcern = $this->getWriteConcern(); |