Skip to content

Commit c3e6dc3

Browse files
committed
Rename internal constant for startAtOperationTime support
1 parent b42924e commit c3e6dc3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Operation/Watch.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
*/
4848
class Watch implements Executable, /* @internal */ CommandSubscriber
4949
{
50-
private static $wireVersionForOperationTime = 7;
50+
private static $wireVersionForStartAtOperationTime = 7;
5151

5252
const FULL_DOCUMENT_DEFAULT = 'default';
5353
const FULL_DOCUMENT_UPDATE_LOOKUP = 'updateLookup';
@@ -269,7 +269,7 @@ private function executeAggregate(Server $server)
269269
/* If we've already captured an operation time or the server does not
270270
* support returning an operation time (e.g. MongoDB 3.6), execute the
271271
* aggregation directly and return its cursor. */
272-
if ($this->operationTime !== null || ! \MongoDB\server_supports_feature($server, self::$wireVersionForOperationTime)) {
272+
if ($this->operationTime !== null || ! \MongoDB\server_supports_feature($server, self::$wireVersionForStartAtOperationTime)) {
273273
return $this->aggregate->execute($server);
274274
}
275275

0 commit comments

Comments
 (0)