Skip to content

Commit cf6ab08

Browse files
committed
Revert "DOCS-5324 quorum reads with findAndModify"
This reverts commit 0461523.
1 parent f5076e7 commit cf6ab08

File tree

7 files changed

+11
-194
lines changed

7 files changed

+11
-194
lines changed

source/includes/fact-findAndModify-update-comparison.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ When updating a document, |operation| and the
1313
method, you cannot specify which single document to update when
1414
multiple documents match.
1515

16-
- By default, |operation| returns |return-object|. To
16+
- By default, |operation| method returns |return-object|. To
1717
obtain the updated document, use the ``new`` option.
1818

1919
The :method:`~db.collection.update()` method returns a

source/includes/steps-findAndModify-quorum-reads.yaml

Lines changed: 0 additions & 92 deletions
This file was deleted.

source/includes/toc-crud-tutorials.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,4 @@ file: /tutorial/create-an-auto-incrementing-field
5252
description: |
5353
Describes how to create an incrementing sequence number for the
5454
``_id`` field using a Counters Collection or an Optimistic Loop.
55-
---
56-
file: /tutorial/perform-findAndModify-quorum-reads
57-
description: |
58-
Perform quorum reads using ``findAndModify``.
5955
...

source/reference/command/findAndModify.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -418,5 +418,3 @@ The method returns the deleted document:
418418
},
419419
"ok" : 1
420420
}
421-
422-
.. seealso:: :doc:`/tutorial/perform-findAndModify-quorum-reads`

source/reference/method/db.collection.findAndModify.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -287,5 +287,3 @@ The method returns the deleted document:
287287
"state" : "active",
288288
"rating" : 3
289289
}
290-
291-
.. seealso:: :doc:`/tutorial/perform-findAndModify-quorum-reads`

source/reference/write-concern.txt

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -40,32 +40,31 @@ concern on to the shard.
4040
``w`` Option
4141
~~~~~~~~~~~~
4242

43-
The ``w`` option provides the ability to specify the write concern for
44-
:term:`replica sets <replica set>` *as well as* disable write concern
45-
entirely.
43+
The ``w`` option provides the ability to disable write concern entirely
44+
*as well as* specify the write concern for :term:`replica sets <replica
45+
set>`.
4646

4747
MongoDB uses ``w: 1`` as the default write concern. ``w: 1``
4848
provides basic receipt acknowledgment.
4949

50-
Using the ``w`` option, the following ``w: <value>`` write concerns are
51-
available:
50+
The ``w`` option accepts the following values:
5251

5352
.. list-table::
5453
:header-rows: 1
55-
:widths: 30 70
54+
:widths: 25 75
5655

5756
* - Value
5857

5958
- Description
6059

61-
* - .. writeconcern:: w: 1
60+
* - ``1``
6261

6362
- Provides acknowledgment of write operations on a standalone
6463
:program:`mongod` or the :term:`primary` in a replica set.
6564

6665
This is the default write concern for MongoDB.
6766

68-
* - .. writeconcern:: w: 0
67+
* - ``0``
6968

7069
- Disables basic acknowledgment of write operations, but returns
7170
information about socket exceptions and networking errors to the
@@ -76,7 +75,7 @@ available:
7675
the server will require that :program:`mongod` acknowledge
7776
the write operation.
7877

79-
* - .. writeconcern:: w: <Number greater than 1>
78+
* - <Number greater than 1>
8079

8180
- Guarantees that write operations have propagated successfully to
8281
the specified number of replica set members including the
@@ -90,7 +89,7 @@ available:
9089
members to become available, which means MongoDB blocks
9190
indefinitely.
9291

93-
* - .. writeconcern:: w: "majority"
92+
* - ``"majority"``
9493

9594
- Confirms that write operations have propagated to the majority
9695
of voting nodes: a majority of the replica set's
@@ -104,7 +103,7 @@ available:
104103

105104
.. include:: /includes/fact-master-slave-majority.rst
106105

107-
* - .. writeconcern:: w: <tag set>
106+
* - <tag set>
108107

109108
- By specifying a :ref:`tag set
110109
<replica-set-configuration-tag-sets>`, you can have fine-grained

source/tutorial/perform-findAndModify-quorum-reads.txt

Lines changed: 0 additions & 82 deletions
This file was deleted.

0 commit comments

Comments
 (0)