Skip to content

Commit 7716bd6

Browse files
committed
DRIVERS-2789 Read Write Concern Spec to Markdown
formatting
1 parent 6cee6ea commit 7716bd6

File tree

12 files changed

+501
-705
lines changed

12 files changed

+501
-705
lines changed

source/causal-consistency/causal-consistency.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,8 +237,7 @@ For causal consistency the driver MUST send the `operationTime` saved in the `Cl
237237
```
238238

239239
For the lists of commands that support causally consistent reads, see
240-
[ReadConcern](https://github.com/mongodb/specifications/blob/master/source/read-write-concern/read-write-concern.rst#read-concern/)
241-
spec.
240+
[ReadConcern](../read-write-concern/read-write-concern.md#read-concern/) spec.
242241

243242
The driver MUST merge the `ReadConcern` specified for the operation with the `operationTime` from the `ClientSession`
244243
(which goes in the `afterClusterTime` field) to generate the combined `readConcern` to send to the server. If the level

source/change-streams/change-streams.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -555,10 +555,10 @@ NOT throw a custom exception if multiple `$changeStream` stages are present (e.g
555555
in the pipeline supplied to the helper), as the server will return an error.
556556

557557
The helper methods MUST determine a read concern for the operation in accordance with the
558-
[Read and Write Concern specification](https://github.com/mongodb/specifications/blob/master/source/read-write-concern/read-write-concern.rst#via-code).
559-
The initial implementation of change streams on the server requires a 'majority' read concern or no read concern.
560-
Drivers MUST document this requirement. Drivers SHALL NOT throw an exception if any other read concern is specified, but
561-
instead should depend on the server to return an error.
558+
[Read and Write Concern specification](../read-write-concern/read-write-concern.md#via-code). The initial implementation
559+
of change streams on the server requires a 'majority' read concern or no read concern. Drivers MUST document this
560+
requirement. Drivers SHALL NOT throw an exception if any other read concern is specified, but instead should depend on
561+
the server to return an error.
562562

563563
The stage has the following shape:
564564

source/crud/crud.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1672,7 +1672,7 @@ Drivers MUST construct a `WriteConcernError` from a server reply as follows:
16721672
- Set `message` to `writeConcernError.errmsg` if available.
16731673
- Set `details` to `writeConcernError.errInfo` if available. Drivers MUST NOT parse inside `errInfo`.
16741674

1675-
See [writeConcernError Examples](../read-write-concern/read-write-concern.rst#writeconcernerror-examples) in the
1675+
See [writeConcernError Examples](../read-write-concern/read-write-concern.md#writeconcernerror-examples) in the
16761676
Read/Write Concern spec for examples of how a server represents write concern errors in replies.
16771677

16781678
###### WriteError
@@ -2263,7 +2263,7 @@ Write concern is about indicating how writes are acknowledged. Since all operati
22632263
in this specification are performed on a collection, it's uncommon that two different write operations on the same
22642264
collection would use a different write concern, potentially causing mismatched and out-of-sync data. As such, the most
22652265
natural place to indicate write concern is on the client, the database, or the collection itself and not the operations
2266-
within it. See the [Read/Write Concern specification](../read-write-concern/read-write-concern.rst) for the API of
2266+
within it. See the [Read/Write Concern specification](../read-write-concern/read-write-concern.md) for the API of
22672267
constructing a read/write concern and associated API.
22682268

22692269
However, it might be that a driver needs to expose write concern to a user per operation for various reasons. As noted

source/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
- [ObjectID format](./objectid.md)
3535
- [Performance Benchmarking](benchmarking/benchmarking.md)
3636
- [Polling SRV Records for mongos Discovery](polling-srv-records-for-mongos-discovery/polling-srv-records-for-mongos-discovery.md)
37+
- [Read and Write Concern](read-write-concern/read-write-concern.md)
3738
- [Retryable Reads](retryable-reads/retryable-reads.md)
3839
- [Retryable Writes](retryable-writes/retryable-writes.md)
3940
- [SDAM Logging and Monitoring Specification](server-discovery-and-monitoring/server-discovery-and-monitoring-logging-and-monitoring.md)

0 commit comments

Comments
 (0)