Skip to content

Typos #910

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 5 commits into from
Closed

Typos #910

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions source/core/create.txt
Original file line number Diff line number Diff line change
Expand Up @@ -490,8 +490,8 @@ collection [#previous-versions-upsert]_:

.. _crud-create-save:

Update operations with with ``save()``
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Update operations with ``save()``
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

The :method:`~db.collection.save()` method is identical to an :ref:`update
operation with the upsert flag <crud-create-update>`
Expand Down
2 changes: 1 addition & 1 deletion source/core/indexes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ arrays, as in the following example:
and would add items to the index for all of the sub-documents in
the array.

With an index, such as ``{ comments.text: 1 }`` you, consider the
With an index, such as ``{ comments.text: 1 }``, consider the
following query:

.. code-block:: javascript
Expand Down
2 changes: 1 addition & 1 deletion source/core/replication-internals.txt
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ entries from other members. Members sync data at two different points:
restored member, populating the member with the replica set's
data. When a new or restored member joins or rejoins a set, the member
waits to receive heartbeats from other members. By default, the member
syncs from the *the closest* member of the set that is either the
syncs from the *closest* member of the set that is either the
primary or another secondary with more recent oplog entries. This
prevents two secondaries from syncing from each other.

Expand Down
9 changes: 4 additions & 5 deletions source/faq/concurrency.txt
Original file line number Diff line number Diff line change
Expand Up @@ -125,11 +125,10 @@ Which administrative commands lock the database?

Certain administrative commands can exclusively lock the database for
extended periods of time. In some deployments, for large databases,
you may consider taking the
the :program:`mongod` instance offline so that clients are not affected.
For example, if a :program:`mongod` is part of a :term:`replica set`,
take the :program:`mongod` offline and let other members of the set
service load while maintenance is in progress.
you may consider taking the :program:`mongod` instance offline so that
clients are not affected. For example, if a :program:`mongod` is part
of a :term:`replica set`, take the :program:`mongod` offline and let
other members of the set service load while maintenance is in progress.

The following administrative operations require an exclusive
(i.e. write) lock to a the database for extended periods:
Expand Down
4 changes: 2 additions & 2 deletions source/faq/diagnostics.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ Where can I find information about a ``mongod`` process that stopped running une
If :program:`mongod` shuts down unexpectedly on a UNIX or UNIX-based
platform, and if :program:`mongod` fails to log a shutdown or error
message, then check your system logs for messages pertaining to MongoDB.
For example, for logs located in in ``/var/log/messages``,
use the following commands:
For example, for logs located in ``/var/log/messages``, use the
following commands:

.. code-block:: sh

Expand Down
2 changes: 1 addition & 1 deletion source/reference/method/db.collection.findAndModify.txt
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ db.collection.findAndModify()
.. note::

- If no document is found for the ``update`` or ``remove``, the
the method returns ``null``.
method returns ``null``.

- If no document is found for an ``upsert``, which means the
command performs an insert, and ``new`` is ``false``, **and**
Expand Down
2 changes: 1 addition & 1 deletion source/tutorial/deploy-shard-cluster.txt
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ You would issue the following command:
Add Shards to the Cluster
-------------------------

A :term:`shard` can be a standalone :program:`mongod` or or a
A :term:`shard` can be a standalone :program:`mongod` or a
:term:`replica set`. In a production environment, each shard
should be a replica set.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ in a :doc:`sharded cluster </core/sharded-clusters>`
to a new server that uses a different hostname. Use this procedure only
if the config server *will not* be accessible via the same hostname.
If possible, avoid changing the hostname so that you can instead use the
the procedure to :doc:`migrate a config server and use the same hostname
procedure to :doc:`migrate a config server and use the same hostname
<migrate-config-servers-with-same-hostname>`.

#. Disable the cluster balancer process temporarily. See
Expand Down