Skip to content

Commit a28e95b

Browse files
authored
DOCSP-25224 EOL Version Cleanup of mongosh Methods (#1901) (#2145)
1 parent 9604ae1 commit a28e95b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+191
-733
lines changed

config/redirects

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2059,3 +2059,6 @@ raw: ${prefix}/${version}/applications/drivers -> ${base}/drivers/
20592059
(v5.3-*]: ${prefix}/${version}/reference/method/quit -> ${base}/${version}/reference/method/js-native
20602060
(v5.3-*]: ${prefix}/${version}/reference/method/sleep -> ${base}/${version}/reference/method/js-native
20612061
(v5.3-*]: ${prefix}/${version}/reference/method/version -> ${base}/${version}/reference/method/js-native
2062+
2063+
(v4.2-*]: ${prefix}/${version}/reference/method/db.copyDatabase -> ${base}/database-tools/mongodump/#std-label-mongodump-example-copy-clone-database
2064+
(v4.2-*]: ${prefix}/${version}/reference/method/db.cloneDatabase -> ${base}/database-tools/mongodump/#std-label-mongodump-example-copy-clone-database

source/faq/concurrency.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -385,10 +385,6 @@ database:
385385
* - Operation
386386
- Behavior
387387

388-
* - :method:`db.copyDatabase()`
389-
- This operation obtains a global (W) exclusive lock and blocks
390-
other operations until it finishes.
391-
392388
* - | :dbcommand:`reIndex`
393389
| :method:`db.collection.reIndex()`
394390
- .. versionchanged:: 4.2
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
2+
.. note::
3+
4+
You cannot use ``resumeAfter`` to resume a change stream after an
5+
:ref:`invalidate event <change-event-invalidate>` (for example, a collection
6+
drop or rename) closes the stream. Starting in MongoDB 4.2, you can use
7+
:ref:`startAfter <change-stream-start-after>` to start a new change
8+
stream after an :ref:`invalidate event <change-event-invalidate>`.
9+

source/includes/cursor-index-use.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
2+
.. note:: Index Use
3+
4+
To use an index with the :method:`~cursor.max()` method, you must use the
5+
:method:`~cursor.hint()` method to specify the index you want to use,
6+
exept when the :method:`~db.collection.find()` query is an equality
7+
condition on the ``_id`` field.
8+

source/includes/extracts-listCollections-auth.yaml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ content: |
1414
The built-in role :authrole:`read` provides the privilege to run
1515
:dbcommand:`listCollections` for a specific database.
1616
17-
Starting in version 4.0, however, user without the required privilege
17+
Users without the required privilege
1818
can run the command with **both** ``authorizedCollections`` and
1919
``nameOnly`` options set to ``true``. In this case, the command returns
2020
just the name and type of the collection(s) to which the user has
@@ -48,8 +48,7 @@ content: |
4848
ref: listCollections-auth-show-collections
4949
content: |
5050
51-
Starting in version 4.0 of the ``mongo`` shell, ``show
52-
collections`` is equivalent to:
51+
The ``mongo`` shell, ``show collections`` is equivalent to:
5352
5453
.. code-block:: javascript
5554
@@ -79,8 +78,7 @@ content: |
7978
ref: listCollections-auth-showCollectionNames
8079
content: |
8180
82-
Starting in version 4.0 of the ``mongo`` shell,
83-
:method:`db.getCollectionNames()` is equivalent to:
81+
The :method:`db.getCollectionNames()` is equivalent to:
8482
8583
.. code-block:: javascript
8684

source/includes/extracts-sessions.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ content: |
109109
ref: sessions-cursor-timeout
110110
content: |
111111
112-
Starting in MongoDB 3.6, MongoDB drivers and :binary:`~bin.mongosh`
112+
MongoDB drivers and :binary:`~bin.mongosh`
113113
associate all operations with a :doc:`server session
114114
</reference/server-sessions>`, with the exception of unacknowledged
115115
write operations. For operations not explicitly associated with a

source/includes/extracts-syncFrom.yaml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,9 @@ content: |
33
Sync Logic
44
~~~~~~~~~~
55
6-
.. versionchanged:: 3.4
7-
86
If an initial sync operation is in progress when you run
97
{{syncfrom}}, {{syncfrom}} stops the in-progress initial sync and
10-
restarts the sync process with the new target. In previous versions,
11-
if you run {{syncfrom}} during initial sync, MongoDB produces no
12-
error messages, but the sync target will not change until after the
13-
initial sync operation.
8+
restarts the sync process with the new target.
149
1510
Only modify the default sync logic as needed, and always exercise
1611
caution.

source/includes/extracts-zoned-sharding.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,7 @@ content: |
114114
ref: zoned-sharding-drop-collection-change
115115
content: |
116116
117-
Starting in MongoDB 4.0.2, dropping a collection deletes its
118-
associated zone/tag ranges.
117+
Dropping a collection deletes its associated zone/tag ranges.
119118
120119
---
121120
ref: zoned-sharding-compound-hashed-downgrade

source/includes/fact-aggregate-readConcern.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,3 @@ Starting in MongoDB 4.2, you can specify :doc:`read concern
22
</reference/read-concern>` level :readconcern:`"majority"` for an
33
aggregation that includes an :pipeline:`$out` stage.
44

5-
In MongoDB 4.0 and earlier, you cannot include the :pipeline:`$out`
6-
stage to use :readconcern:`"majority"` read concern for the aggregation.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
2+
MongoDB uses an optimized build process that obtains and holds an exclusive
3+
lock on the specified collection at the start and end of the index build. All
4+
subsequent operations on the collection must wait until |method| releases
5+
the exclusive lock. |method| allows interleaving read and write
6+
operations during the majority of the index build.
7+
8+
For more information on the locking behavior of |method|, see
9+
:ref:`index-operations`.
10+

0 commit comments

Comments
 (0)