Skip to content

Commit bfc80b8

Browse files
committed
Merge pull request #550
2 parents 1d9602e + 0658662 commit bfc80b8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/Operation/Watch.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,10 +149,12 @@ public function __construct(Manager $manager, $databaseName, $collectionName, ar
149149

150150
/* In the absence of an explicit session, create one to ensure that the
151151
* initial aggregation and any resume attempts can use the same session
152-
* ("implicit from the user's perspective" per PHPLIB-342). */
152+
* ("implicit from the user's perspective" per PHPLIB-342). Since this
153+
* is filling in for an implicit session, we default "causalConsistency"
154+
* to false. */
153155
if ( ! isset($options['session'])) {
154156
try {
155-
$options['session'] = $manager->startSession();
157+
$options['session'] = $manager->startSession(['causalConsistency' => false]);
156158
} catch (RuntimeException $e) {
157159
/* We can ignore the exception, as libmongoc likely cannot
158160
* create its own session and there is no risk of a mismatch. */

0 commit comments

Comments
 (0)