|
7 | 7 |
|
8 | 8 | * - *<command result>*
|
9 | 9 |
|
10 |
| - - Result fields specific to the ``command`` that was run. |
| 10 | + - Result fields specific to the ``command`` that ran. |
11 | 11 |
|
12 | 12 | * - ``ok``
|
13 | 13 |
|
14 |
| - - A number that indicates whether the command has succeeded |
15 |
| - (``1``) or failed (``0``). |
| 14 | + - A number that indicates if the command succeeded (``1``) |
| 15 | + or failed (``0``). |
16 | 16 |
|
17 | 17 | * - ``operationTime``
|
18 | 18 |
|
19 | 19 | - The logical time of the performed operation, represented in
|
20 | 20 | MongoDB by the timestamp from the oplog entry. *Only for replica
|
21 | 21 | sets and sharded clusters*
|
22 | 22 |
|
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 |
25 | 25 | clock. In this case, ``operationTime`` returns:
|
26 | 26 |
|
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. |
29 | 30 |
|
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. |
34 | 34 |
|
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. |
38 | 38 |
|
39 | 39 | .. versionadded:: 3.6
|
40 | 40 |
|
|
52 | 52 | of the key used to sign the cluster time.
|
53 | 53 |
|
54 | 54 | .. versionadded:: 3.6
|
55 |
| - |
0 commit comments