PHPLIB-473: Don't override readConcern when in a transaction

parent 39b740ac
...@@ -313,7 +313,7 @@ class Client ...@@ -313,7 +313,7 @@ class Client
$server = select_server($this->manager, $options); $server = select_server($this->manager, $options);
if (! isset($options['readConcern']) && server_supports_feature($server, self::$wireVersionForReadConcern)) { if (! isset($options['readConcern']) && server_supports_feature($server, self::$wireVersionForReadConcern) && ! is_in_transaction($options)) {
$options['readConcern'] = $this->readConcern; $options['readConcern'] = $this->readConcern;
} }
......
...@@ -511,7 +511,7 @@ class Database ...@@ -511,7 +511,7 @@ class Database
$server = select_server($this->manager, $options); $server = select_server($this->manager, $options);
if (! isset($options['readConcern']) && server_supports_feature($server, self::$wireVersionForReadConcern)) { if (! isset($options['readConcern']) && server_supports_feature($server, self::$wireVersionForReadConcern) && ! is_in_transaction($options)) {
$options['readConcern'] = $this->readConcern; $options['readConcern'] = $this->readConcern;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment