Skip to content

Commit aaa9433

Browse files
committed
DOCSP-9967 correct causal consistency scenario 1 text vs image
1 parent 40f58ad commit aaa9433

File tree

1 file changed

+22
-10
lines changed

1 file changed

+22
-10
lines changed

source/core/causal-consistency-read-write-concerns.txt

Lines changed: 22 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -155,11 +155,13 @@ the following causal consistency guarantees:
155155
* - | 1. Write\ :sub:`1` with write concern :writeconcern:`"majority"` to ``P``\ :sub:`new`
156156
| 2. Read\ :sub:`1` with read concern :readconcern:`"majority"` to ``S``\ :sub:`2`
157157
| 3. Write\ :sub:`2` with write concern :writeconcern:`"majority"` to ``P``\ :sub:`new`
158+
|
158159
| 4. Read\ :sub:`2` with read concern :readconcern:`"majority"` to ``S``\ :sub:`3`
159160

160161
- | For item ``A``, update ``qty`` to ``50``.
161162
| 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``.
163165
| Read item ``A``.
164166

165167
.. figure:: /images/causal-rc-majority-wc-majority.svg
@@ -210,11 +212,13 @@ the following causal consistency guarantees:
210212
* - | 1. Write\ :sub:`1` with write concern :writeconcern:`"majority"` to ``P``\ :sub:`new`
211213
| 2. Read\ :sub:`1` with read concern :readconcern:`"majority"` to ``S``\ :sub:`1`
212214
| 3. Write\ :sub:`2` with write concern :writeconcern:`"majority"` to ``P``\ :sub:`new`
215+
|
213216
| 4. Read\ :sub:`2` with with read concern :readconcern:`"majority"` to ``S``\ :sub:`3`
214217

215218
- | For item ``A``, update ``qty`` to ``50``.
216219
| 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``.
218222
| Read item ``A``.
219223

220224
In this sequence, Read\ :sub:`1` cannot return until the
@@ -292,11 +296,13 @@ provides the following causal consistency guarantees *if causal consistency impl
292296
* - | 1. Write\ :sub:`1` with write concern :writeconcern:`{ w: 1 } <\<number\>>` to ``P``\ :sub:`old`
293297
| 2. Read\ :sub:`1` with read concern :readconcern:`"majority"` to ``S``\ :sub:`2`
294298
| 3. Write\ :sub:`2` with write concern :writeconcern:`{ w: 1 } <\<number\>>` to ``P``\ :sub:`new`
299+
|
295300
| 4. Read\ :sub:`2` with with read concern :readconcern:`"majority"` to ``S``\ :sub:`3`
296301

297302
- | For item ``A``, update ``qty`` to ``50``.
298303
| 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``.
300306
| Read item ``A``.
301307

302308
.. figure:: /images/causal-rc-majority-wc-1.svg
@@ -385,14 +391,16 @@ provides the following causal consistency guarantees *if causal consistency impl
385391

386392
- Example
387393

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`
392399

393400
- | For item ``A``, update ``qty`` to ``50``.
394401
| 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``.
396404
| Read item ``A``.
397405

398406
In this sequence:
@@ -495,11 +503,13 @@ some situations, but not necessarily in all situations.
495503
* - | 1. Write\ :sub:`1` with write concern :writeconcern:`{ w: 1 } <\<number\>>` to ``P``\ :sub:`old`
496504
| 2. Read\ :sub:`1` with read concern :readconcern:`"local"` to ``S``\ :sub:`1`
497505
| 3. Write\ :sub:`2` with write concern :writeconcern:`{ w: 1 } <\<number\>>` to ``P``\ :sub:`new`
506+
|
498507
| 4. Read\ :sub:`2` with read concern :readconcern:`"local"` to ``S``\ :sub:`3`
499508

500509
- | For item ``A``, update ``qty`` to ``50``.
501510
| 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``.
503513
| Read item ``A``.
504514

505515
.. figure:: /images/causal-rc-local-wc-1.svg
@@ -564,11 +574,13 @@ some situations, but not necessarily in all situations.
564574
* - | 1. Write\ :sub:`1` with write concern :writeconcern:`"majority"` to ``P``\ :sub:`new`
565575
| 2. Read\ :sub:`1` with read concern :readconcern:`"local"` to ``S``\ :sub:`1`
566576
| 3. Write\ :sub:`2` with write concern :writeconcern:`"majority"` to ``P``\ :sub:`new`
577+
|
567578
| 4. Read\ :sub:`2` with read concern :readconcern:`"local"` to ``S``\ :sub:`3`
568579

569580
- | For item ``A``, update ``qty`` to ``50``.
570581
| 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``.
572584
| Read item ``A``.
573585

574586
.. figure:: /images/causal-rc-local-wc-majority.svg

0 commit comments

Comments
 (0)