@@ -155,11 +155,13 @@ the following causal consistency guarantees:
155
155
* - | 1. Write\ :sub:`1` with write concern :writeconcern:`"majority"` to ``P``\ :sub:`new`
156
156
| 2. Read\ :sub:`1` with read concern :readconcern:`"majority"` to ``S``\ :sub:`2`
157
157
| 3. Write\ :sub:`2` with write concern :writeconcern:`"majority"` to ``P``\ :sub:`new`
158
+ |
158
159
| 4. Read\ :sub:`2` with read concern :readconcern:`"majority"` to ``S``\ :sub:`3`
159
160
160
161
- | For item ``A``, update ``qty`` to ``50``.
161
162
| Read item ``A``.
162
- | For items with ``qty`` less than ``50``, update ``reorder`` to ``true``.
163
+ | For items with ``qty`` less than or equal to ``50``,
164
+ | update ``restock`` to ``true``.
163
165
| Read item ``A``.
164
166
165
167
.. figure:: /images/causal-rc-majority-wc-majority.svg
@@ -210,11 +212,13 @@ the following causal consistency guarantees:
210
212
* - | 1. Write\ :sub:`1` with write concern :writeconcern:`"majority"` to ``P``\ :sub:`new`
211
213
| 2. Read\ :sub:`1` with read concern :readconcern:`"majority"` to ``S``\ :sub:`1`
212
214
| 3. Write\ :sub:`2` with write concern :writeconcern:`"majority"` to ``P``\ :sub:`new`
215
+ |
213
216
| 4. Read\ :sub:`2` with with read concern :readconcern:`"majority"` to ``S``\ :sub:`3`
214
217
215
218
- | For item ``A``, update ``qty`` to ``50``.
216
219
| Read item ``A``.
217
- | For items with ``qty`` less than ``50``, update ``reorder`` to ``true``.
220
+ | For items with ``qty`` less than or equal to ``50``,
221
+ | update ``restock`` to ``true``.
218
222
| Read item ``A``.
219
223
220
224
In this sequence, Read\ :sub:`1` cannot return until the
@@ -292,11 +296,13 @@ provides the following causal consistency guarantees *if causal consistency impl
292
296
* - | 1. Write\ :sub:`1` with write concern :writeconcern:`{ w: 1 } <\<number\>>` to ``P``\ :sub:`old`
293
297
| 2. Read\ :sub:`1` with read concern :readconcern:`"majority"` to ``S``\ :sub:`2`
294
298
| 3. Write\ :sub:`2` with write concern :writeconcern:`{ w: 1 } <\<number\>>` to ``P``\ :sub:`new`
299
+ |
295
300
| 4. Read\ :sub:`2` with with read concern :readconcern:`"majority"` to ``S``\ :sub:`3`
296
301
297
302
- | For item ``A``, update ``qty`` to ``50``.
298
303
| Read item ``A``.
299
- | For items with ``qty`` less than ``50``, update ``reorder`` to ``true``.
304
+ | For items with ``qty`` less than or equal to ``50``,
305
+ | update ``restock`` to ``true``.
300
306
| Read item ``A``.
301
307
302
308
.. figure:: /images/causal-rc-majority-wc-1.svg
@@ -385,14 +391,16 @@ provides the following causal consistency guarantees *if causal consistency impl
385
391
386
392
- Example
387
393
388
- * - | Write\ :sub:`1` with write concern :writeconcern:`{ w: 1 } <\<number\>>` to ``P``\ :sub:`old`
389
- | Read\ :sub:`1` with read concern :readconcern:`"majority"` to ``S``\ :sub:`1`
390
- | Write\ :sub:`2` with write concern :writeconcern:`{ w: 1 } <\<number\>>` to ``P``\ :sub:`new`
391
- | Read\ :sub:`2` with with read concern :readconcern:`"majority"` to ``S``\ :sub:`3`
394
+ * - | 1. Write\ :sub:`1` with write concern :writeconcern:`{ w: 1 } <\<number\>>` to ``P``\ :sub:`old`
395
+ | 2. Read\ :sub:`1` with read concern :readconcern:`"majority"` to ``S``\ :sub:`1`
396
+ | 3. Write\ :sub:`2` with write concern :writeconcern:`{ w: 1 } <\<number\>>` to ``P``\ :sub:`new`
397
+ |
398
+ | 4. Read\ :sub:`2` with with read concern :readconcern:`"majority"` to ``S``\ :sub:`3`
392
399
393
400
- | For item ``A``, update ``qty`` to ``50``.
394
401
| Read item ``A``.
395
- | For items with ``qty`` less than ``50``, update ``reorder`` to ``true``.
402
+ | For items with ``qty`` less than or equal to ``50``,
403
+ | update ``restock`` to ``true``.
396
404
| Read item ``A``.
397
405
398
406
In this sequence:
@@ -495,11 +503,13 @@ some situations, but not necessarily in all situations.
495
503
* - | 1. Write\ :sub:`1` with write concern :writeconcern:`{ w: 1 } <\<number\>>` to ``P``\ :sub:`old`
496
504
| 2. Read\ :sub:`1` with read concern :readconcern:`"local"` to ``S``\ :sub:`1`
497
505
| 3. Write\ :sub:`2` with write concern :writeconcern:`{ w: 1 } <\<number\>>` to ``P``\ :sub:`new`
506
+ |
498
507
| 4. Read\ :sub:`2` with read concern :readconcern:`"local"` to ``S``\ :sub:`3`
499
508
500
509
- | For item ``A``, update ``qty`` to ``50``.
501
510
| Read item ``A``.
502
- | For items with ``qty`` less than ``50``, update ``reorder`` to ``true``.
511
+ | For items with ``qty`` less than or equal to ``50``,
512
+ | update ``restock`` to ``true``.
503
513
| Read item ``A``.
504
514
505
515
.. figure:: /images/causal-rc-local-wc-1.svg
@@ -564,11 +574,13 @@ some situations, but not necessarily in all situations.
564
574
* - | 1. Write\ :sub:`1` with write concern :writeconcern:`"majority"` to ``P``\ :sub:`new`
565
575
| 2. Read\ :sub:`1` with read concern :readconcern:`"local"` to ``S``\ :sub:`1`
566
576
| 3. Write\ :sub:`2` with write concern :writeconcern:`"majority"` to ``P``\ :sub:`new`
577
+ |
567
578
| 4. Read\ :sub:`2` with read concern :readconcern:`"local"` to ``S``\ :sub:`3`
568
579
569
580
- | For item ``A``, update ``qty`` to ``50``.
570
581
| Read item ``A``.
571
- | For items with ``qty`` less than ``50``, update ``reorder`` to ``true``.
582
+ | For items with ``qty`` less than or equal to ``50``,
583
+ | update ``restock`` to ``true``.
572
584
| Read item ``A``.
573
585
574
586
.. figure:: /images/causal-rc-local-wc-majority.svg
0 commit comments