Skip to content

Commit 8f1f3a3

Browse files
committed
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).
1 parent 224033e commit 8f1f3a3

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
@@ -267,8 +267,8 @@ private function createResumeCallable(Manager $manager)
267267
private function executeAggregate(Server $server)
268268
{
269269
/* If we've already captured an operation time or the server does not
270-
* support returning an operation time (e.g. MongoDB 3.6), execute the
271-
* aggregation directly and return its cursor. */
270+
* support resuming from an operation time (e.g. MongoDB 3.6), execute
271+
* the aggregation directly and return its cursor. */
272272
if ($this->operationTime !== null || ! \MongoDB\server_supports_feature($server, self::$wireVersionForStartAtOperationTime)) {
273273
return $this->aggregate->execute($server);
274274
}

0 commit comments

Comments
 (0)