Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mongo-php-library
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sinan
mongo-php-library
Commits
e3a6caa3
Unverified
Commit
e3a6caa3
authored
Sep 04, 2019
by
Andreas Braun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PHPLIB-473: Don't override readConcern when in a transaction
parent
39b740ac
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
Client.php
src/Client.php
+1
-1
Database.php
src/Database.php
+1
-1
No files found.
src/Client.php
View file @
e3a6caa3
...
...
@@ -313,7 +313,7 @@ class Client
$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
;
}
...
...
src/Database.php
View file @
e3a6caa3
...
...
@@ -511,7 +511,7 @@ class Database
$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
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment