Commit bfc80b8f authored by Jeremy Mikola's avatar Jeremy Mikola

Merge pull request #550

parents 1d9602e8 06586628
...@@ -149,10 +149,12 @@ class Watch implements Executable, /* @internal */ CommandSubscriber ...@@ -149,10 +149,12 @@ class Watch implements Executable, /* @internal */ CommandSubscriber
/* In the absence of an explicit session, create one to ensure that the /* In the absence of an explicit session, create one to ensure that the
* initial aggregation and any resume attempts can use the same session * initial aggregation and any resume attempts can use the same session
* ("implicit from the user's perspective" per PHPLIB-342). */ * ("implicit from the user's perspective" per PHPLIB-342). Since this
* is filling in for an implicit session, we default "causalConsistency"
* to false. */
if ( ! isset($options['session'])) { if ( ! isset($options['session'])) {
try { try {
$options['session'] = $manager->startSession(); $options['session'] = $manager->startSession(['causalConsistency' => false]);
} catch (RuntimeException $e) { } catch (RuntimeException $e) {
/* We can ignore the exception, as libmongoc likely cannot /* We can ignore the exception, as libmongoc likely cannot
* create its own session and there is no risk of a mismatch. */ * create its own session and there is no risk of a mismatch. */
......
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