Commit 8f1f3a3a authored by Jeremy Mikola's avatar Jeremy Mikola

Fix comment for wire version check

The wire version check is for the startAtOperationTime $changeStream option. Operation time itself is supported since MongoDB 3.6 (introduced with sessions and casual consistency).
parent 224033e0
...@@ -267,8 +267,8 @@ class Watch implements Executable, /* @internal */ CommandSubscriber ...@@ -267,8 +267,8 @@ class Watch implements Executable, /* @internal */ CommandSubscriber
private function executeAggregate(Server $server) private function executeAggregate(Server $server)
{ {
/* 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 resuming from an operation time (e.g. MongoDB 3.6), execute
* aggregation directly and return its cursor. */ * the aggregation directly and return its cursor. */
if ($this->operationTime !== null || ! \MongoDB\server_supports_feature($server, self::$wireVersionForStartAtOperationTime)) { if ($this->operationTime !== null || ! \MongoDB\server_supports_feature($server, self::$wireVersionForStartAtOperationTime)) {
return $this->aggregate->execute($server); return $this->aggregate->execute($server);
} }
......
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