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
|
@@ 932-934 (lines=3) @@
|
929 |
|
$options['w'] = ($options['safe']) ? 1 : 0; |
930 |
|
} |
931 |
|
|
932 |
|
if (isset($options['wtimeout']) && !isset($options['wTimeoutMS'])) { |
933 |
|
$options['wTimeoutMS'] = $options['wtimeout']; |
934 |
|
} |
935 |
|
|
936 |
|
if (isset($options['w']) || !isset($options['wTimeoutMS'])) { |
937 |
|
$collectionWriteConcern = $this->getWriteConcern(); |