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
c3e6dc30
Commit
c3e6dc30
authored
Jul 02, 2019
by
Jeremy Mikola
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename internal constant for startAtOperationTime support
parent
b42924e6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
Watch.php
src/Operation/Watch.php
+2
-2
No files found.
src/Operation/Watch.php
View file @
c3e6dc30
...
@@ -47,7 +47,7 @@ use MongoDB\Exception\UnsupportedException;
...
@@ -47,7 +47,7 @@ use MongoDB\Exception\UnsupportedException;
*/
*/
class
Watch
implements
Executable
,
/* @internal */
CommandSubscriber
class
Watch
implements
Executable
,
/* @internal */
CommandSubscriber
{
{
private
static
$wireVersionForOperationTime
=
7
;
private
static
$wireVersionFor
StartAt
OperationTime
=
7
;
const
FULL_DOCUMENT_DEFAULT
=
'default'
;
const
FULL_DOCUMENT_DEFAULT
=
'default'
;
const
FULL_DOCUMENT_UPDATE_LOOKUP
=
'updateLookup'
;
const
FULL_DOCUMENT_UPDATE_LOOKUP
=
'updateLookup'
;
...
@@ -269,7 +269,7 @@ class Watch implements Executable, /* @internal */ CommandSubscriber
...
@@ -269,7 +269,7 @@ class Watch implements Executable, /* @internal */ CommandSubscriber
/* If we've already captured an operation time or the server does not
/* If we've already captured an operation time or the server does not
* support returning an operation time (e.g. MongoDB 3.6), execute the
* support returning an operation time (e.g. MongoDB 3.6), execute the
* aggregation directly and return its cursor. */
* aggregation directly and return its cursor. */
if
(
$this
->
operationTime
!==
null
||
!
\MongoDB\server_supports_feature
(
$server
,
self
::
$wireVersionForOperationTime
))
{
if
(
$this
->
operationTime
!==
null
||
!
\MongoDB\server_supports_feature
(
$server
,
self
::
$wireVersionFor
StartAt
OperationTime
))
{
return
$this
->
aggregate
->
execute
(
$server
);
return
$this
->
aggregate
->
execute
(
$server
);
}
}
...
...
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