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
bfc80b8f
Commit
bfc80b8f
authored
Jun 26, 2018
by
Jeremy Mikola
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #550
parents
1d9602e8
06586628
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
Watch.php
src/Operation/Watch.php
+4
-2
No files found.
src/Operation/Watch.php
View file @
bfc80b8f
...
@@ -149,10 +149,12 @@ class Watch implements Executable, /* @internal */ CommandSubscriber
...
@@ -149,10 +149,12 @@ class Watch implements Executable, /* @internal */ CommandSubscriber
/* In the absence of an explicit session, create one to ensure that the
/* In the absence of an explicit session, create one to ensure that the
* initial aggregation and any resume attempts can use the same session
* initial aggregation and any resume attempts can use the same session
* ("implicit from the user's perspective" per PHPLIB-342). */
* ("implicit from the user's perspective" per PHPLIB-342). Since this
* is filling in for an implicit session, we default "causalConsistency"
* to false. */
if
(
!
isset
(
$options
[
'session'
]))
{
if
(
!
isset
(
$options
[
'session'
]))
{
try
{
try
{
$options
[
'session'
]
=
$manager
->
startSession
();
$options
[
'session'
]
=
$manager
->
startSession
(
[
'causalConsistency'
=>
false
]
);
}
catch
(
RuntimeException
$e
)
{
}
catch
(
RuntimeException
$e
)
{
/* We can ignore the exception, as libmongoc likely cannot
/* We can ignore the exception, as libmongoc likely cannot
* create its own session and there is no risk of a mismatch. */
* create its own session and there is no risk of a mismatch. */
...
...
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