Skip to content

Commit 5f1f673

Browse files
jason-price-mongodbjason-price-mongodb
andauthored
DOCSP-33107-read-concern-operation-time (#5245)
* read-concern-operation-time * DOCSP-33107-read-concern-operation-time * DOCSP-33107-read-concern-operation-time --------- Co-authored-by: jason-price-mongodb <[email protected]>
1 parent 8c45702 commit 5f1f673

File tree

1 file changed

+13
-14
lines changed

1 file changed

+13
-14
lines changed

source/includes/fact-runCommand-results.rst

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77

88
* - *<command result>*
99

10-
- Result fields specific to the ``command`` that was run.
10+
- Result fields specific to the ``command`` that ran.
1111

1212
* - ``ok``
1313

14-
- A number that indicates whether the command has succeeded (``1``)
14+
- A number that indicates if the command succeeded (``1``)
1515
or failed (``0``).
1616

1717
* - ``operationTime``
@@ -20,21 +20,21 @@
2020
to order operations. *Only for replica sets and sharded
2121
clusters.*
2222

23-
If the command does not generate an oplog entry, e.g. a read
24-
operation, then the operation does not advance the logical
23+
If the command does not generate an oplog entry, for example, a
24+
read operation, then the operation does not advance the logical
2525
clock. In this case, ``operationTime`` returns:
2626

27-
- For read concern :readconcern:`"local"`, the timestamp of the
28-
most recent entry in the oplog.
27+
- For read concern :readconcern:`"local"`,
28+
:readconcern:`"snapshot"`, and :readconcern:`"linearizable"`,
29+
the timestamp of the most recent entry in the oplog.
2930

30-
- For read concern :readconcern:`"majority"` and
31-
:readconcern:`"linearizable"`, the timestamp of the most
32-
recent :writeconcern:`majority-acknowledged <"majority">`
33-
entry in the oplog.
31+
- For read concern :readconcern:`"majority"`, the timestamp of
32+
the most recent :writeconcern:`majority-acknowledged
33+
<"majority">` entry in the oplog.
3434

35-
For operations associated with :ref:`causally consistent
36-
sessions <causal-consistency>`, MongoDB drivers use this time
37-
to automatically set the :ref:`afterClusterTime`.
35+
For operations associated with :ref:`causally consistent sessions
36+
<causal-consistency>`, the MongoDB drivers use the logical time
37+
to automatically set the :ref:`afterClusterTime` period.
3838

3939
* - ``$clusterTime``
4040

@@ -48,4 +48,3 @@
4848

4949
- ``signature``: a document that contains the hash of the cluster time and the id
5050
of the key used to sign the cluster time.
51-

0 commit comments

Comments
 (0)