Skip to content

Commit b1e9c5d

Browse files
DOCSP-23877 Fix v4.2 build errors (#1486)
* WIP: * WIP * add missing ref * more fixes * more fixes * more fixes
1 parent 4f61a5a commit b1e9c5d

12 files changed

+28
-135
lines changed

config/intersphinx.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: pymongo
2-
url: https://api.mongodb.com/python/current/
2+
url: https://pymongo.readthedocs.io/en/stable/
33
path: pymongo.inv
44
---
55
name: motor

source/about.txt

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,10 @@ Manual. You can see the full revision history and track ongoing
5252
improvements and additions for all versions of the manual from its `GitHub
5353
repository <https://github.com/mongodb/docs>`_.
5454

55-
This edition reflects "|branch|" branch of the documentation
56-
as of the "|commit|" revision. This branch is explicitly accessible
57-
via "|hardlink|" and you can always reference the commit of the
58-
current manual in the :hardlink:`release.txt` file.
55+
This edition reflects "|branch|" branch of the documentation. This
56+
branch is explicitly accessible via "|hardlink|" and you can always
57+
reference the commit of the current manual in the
58+
:hardlink:`release.txt` file.
5959

6060
The most up-to-date, current, and stable version of the manual is
6161
always available at "https://docs.mongodb.com/manual/".
@@ -108,4 +108,3 @@ For more information on the MongoDB documentation process, see the
108108

109109
If you have any questions, please feel free to open a :issue:`Jira Case
110110
<DOCS>`.
111-

source/core/index-compound.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,13 +88,14 @@ as well as both ``item`` and ``stock`` fields:
8888
For details, see :ref:`compound-index-prefix`.
8989

9090
.. index:: index; sort order
91-
.. _index-ascending-and-descending:
9291

9392
The order of the indexed fields has a strong impact on the
9493
effectiveness of a particular index for a given query. For most
9594
compound indexes, following the :ref:`ESR (Equality, Sort, Range) rule
9695
<esr-indexing-rule>` helps to create efficient indexes.
9796

97+
.. _index-ascending-and-descending:
98+
9899
Sort Order
99100
----------
100101

@@ -203,4 +204,3 @@ Additional Considerations
203204
-------------------------
204205

205206
.. include:: /includes/index-tutorials-considerations.rst
206-

source/includes/fact-platform-support-enterprise-windows.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,4 @@ MongoDB only supports the 64-bit versions of these platforms.
1616

1717
See :ref:`prod-notes-supported-platforms` for more information.
1818

19-
.. include:: includes/fact-wsl-not-supported.rst
20-
19+
.. include:: /includes/fact-wsl-not-supported.rst

source/includes/fact-platform-support-windows.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,4 @@ MongoDB only supports the 64-bit versions of these platforms.
1616

1717
See :ref:`prod-notes-supported-platforms` for more information.
1818

19-
.. include:: includes/fact-wsl-not-supported.rst
20-
19+
.. include:: /includes/fact-wsl-not-supported.rst
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
MongoDB does not store documents in a collection in a particular order.
2+
When sorting on a field which contains duplicate values, documents
3+
containing those values may be returned in any order.
4+
5+
If consistent sort order is desired, include at least one field in your
6+
sort that contains unique values. The easiest way to guarantee this is
7+
to include the ``_id`` field in your sort query.

source/includes/important-delayed-replica-set-members.rst

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,4 @@
2929

3030
For more information on the majority commit point, see
3131
:doc:`Causal Consistency and Read and Write Concerns
32-
</core/causal-consistency-read-write-concerns>`. For additional
33-
details on resolving performance issues see the
34-
:ref:`replica set maintenance tutorial<performance-issues-psa>`.
32+
</core/causal-consistency-read-write-concerns>`.

source/reference/command/splitChunk.txt

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

source/reference/glossary.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -264,9 +264,7 @@ Glossary
264264
DDL (Data Definition Language)
265265
DDL includes commands that create and modify collections and
266266
indexes. For the full list of commands, see
267-
:ref:`transactions-operations-ddl-explicit`,
268-
:ref:`transactions-operations-ddl-implicit`, and
269-
:ref:`txn-prod-considerations-ddl`.
267+
:ref:`transactions-operations-ref`.
270268

271269
delayed member
272270
A :term:`replica set` member that cannot become primary and

source/reference/limits.txt

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -215,13 +215,6 @@ Indexes
215215

216216
.. include:: /includes/extracts/collation-index-type-restrictions-addendum.rst
217217

218-
.. limit:: Hidden Indexes
219-
220-
- You cannot :doc:`hide </core/index-hidden>` the ``_id`` index.
221-
222-
- You cannot use :method:`~cursor.hint()` on a :doc:`hidden index
223-
</core/index-hidden>`.
224-
225218
Sorts
226219
-----
227220

source/reference/program/mongodump.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -733,10 +733,10 @@ Options
733733

734734

735735
By default, :program:`mongodump` uses the ``_id`` index when scanning
736-
collections with that index is available (e.g.
737-
:ref:`3.4-reference-views` do not have any indexes). Specify :option:`--forceTableScan`
738-
to direct :program:`mongodump` to scan collection data without the use of the
739-
``_id`` index.
736+
collections with that index is available (for example, :ref:`views
737+
<views-landing-page>` do not have any indexes). Specify
738+
:option:`--forceTableScan` to direct :program:`mongodump` to scan
739+
collection data without the use of the ``_id`` index.
740740

741741
:option:`--forceTableScan` does not ensure a point-in-time snapshot. Use
742742
:option:`--oplog` to create a point-in-time snapshot.

source/tutorial/backup-and-restore-tools.txt

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -155,17 +155,17 @@ current working directory.
155155
Create Backups Using Oplogs
156156
```````````````````````````
157157

158-
The :option:`--oplog <mongodump.--oplog>` option with
158+
The :option:`--oplog <mongodump --oplog>` option with
159159
:binary:`~bin.mongodump` collects the :term:`oplog` entries and allows
160160
you to perform a backup on a live database. If you later restore the
161161
database from the backup, the database will be the same as it was when
162162
the backup process completed.
163163

164-
With :option:`--oplog <mongodump.--oplog>`, :binary:`~bin.mongodump`
164+
With :option:`--oplog <mongodump --oplog>`, :binary:`~bin.mongodump`
165165
copies all the data from the source database as well as all of the
166166
:term:`oplog` entries from the beginning to the end of the backup
167167
procedure. This operation, in conjunction with :option:`mongorestore
168-
--oplogReplay <mongorestore.--oplogReplay>`, allows you to restore a
168+
--oplogReplay <mongorestore --oplogReplay>`, allows you to restore a
169169
backup that reflects the specific moment in time that corresponds to
170170
when :binary:`~bin.mongodump` completed creating the dump file.
171171

@@ -245,9 +245,9 @@ running on the localhost interface on the default port ``27017``.
245245
Restore Point in Time Oplog Backup
246246
``````````````````````````````````
247247

248-
If you created your database dump using the :option:`--oplog
249-
<mongodump --oplog>` option to ensure a point-in-time snapshot, call
250-
:binary:`~bin.mongorestore` with the
248+
If you created your database dump using the
249+
:option:`--oplog <mongodump --oplog>` option to ensure a point-in-time
250+
snapshot, call :binary:`~bin.mongorestore` with the
251251
:option:`--oplogReplay <mongorestore --oplogReplay>`
252252
option, as in the following example:
253253

@@ -287,6 +287,3 @@ prompt for the password:
287287
.. code-block:: sh
288288

289289
mongorestore --host=mongodb1.example.net --port=3017 --username=user --authenticationDatabase=admin /opt/backup/mongodump-2013-10-24
290-
291-
292-

0 commit comments

Comments
 (0)