From 24903f474f7bb391502ad59b2da112fe47ded8b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jorge=20Puente=20Sarr=C3=ADn?= Date: Tue, 23 Apr 2013 15:46:39 -0500 Subject: [PATCH 1/5] Repeated term: the --- source/core/replication-internals.txt | 2 +- source/faq/concurrency.txt | 9 ++++----- source/reference/method/db.collection.findAndModify.txt | 2 +- .../migrate-config-servers-with-different-hostnames.txt | 2 +- 4 files changed, 7 insertions(+), 8 deletions(-) diff --git a/source/core/replication-internals.txt b/source/core/replication-internals.txt index 0cf1f353897..c3bd8d01447 100644 --- a/source/core/replication-internals.txt +++ b/source/core/replication-internals.txt @@ -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. diff --git a/source/faq/concurrency.txt b/source/faq/concurrency.txt index a0de591aa9e..4c0e9304145 100644 --- a/source/faq/concurrency.txt +++ b/source/faq/concurrency.txt @@ -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: diff --git a/source/reference/method/db.collection.findAndModify.txt b/source/reference/method/db.collection.findAndModify.txt index b043997623d..89467c88f7f 100644 --- a/source/reference/method/db.collection.findAndModify.txt +++ b/source/reference/method/db.collection.findAndModify.txt @@ -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** diff --git a/source/tutorial/migrate-config-servers-with-different-hostnames.txt b/source/tutorial/migrate-config-servers-with-different-hostnames.txt index 08aa0428931..0af4b222eec 100644 --- a/source/tutorial/migrate-config-servers-with-different-hostnames.txt +++ b/source/tutorial/migrate-config-servers-with-different-hostnames.txt @@ -9,7 +9,7 @@ in a :doc:`sharded cluster ` 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 `. #. Disable the cluster balancer process temporarily. See From e7b12496b82fdf0102b4a351ef2ecbff19868784 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jorge=20Puente=20Sarr=C3=ADn?= Date: Tue, 23 Apr 2013 15:53:48 -0500 Subject: [PATCH 2/5] Repeated term: with --- source/core/create.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/core/create.txt b/source/core/create.txt index 70e50e5aecb..f44d53773fb 100644 --- a/source/core/create.txt +++ b/source/core/create.txt @@ -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 ` From 0124a78507dcaaca9601452c60afae2c668bc978 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jorge=20Puente=20Sarr=C3=ADn?= Date: Tue, 23 Apr 2013 15:57:03 -0500 Subject: [PATCH 3/5] Repeated term: or --- source/tutorial/deploy-shard-cluster.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/tutorial/deploy-shard-cluster.txt b/source/tutorial/deploy-shard-cluster.txt index c2ef0f8ec07..4a2705556b1 100644 --- a/source/tutorial/deploy-shard-cluster.txt +++ b/source/tutorial/deploy-shard-cluster.txt @@ -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. From 6ef0053917b95096c742f0df13de3cd4dbf2bc76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jorge=20Puente=20Sarr=C3=ADn?= Date: Tue, 23 Apr 2013 15:59:21 -0500 Subject: [PATCH 4/5] Minor typo on indexes core document --- source/core/indexes.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/core/indexes.txt b/source/core/indexes.txt index a8fa66077a6..fbab9131932 100644 --- a/source/core/indexes.txt +++ b/source/core/indexes.txt @@ -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 From 27f1a7abbd25dc1e7c2ffe6e06a0bf5810406e34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jorge=20Puente=20Sarr=C3=ADn?= Date: Tue, 23 Apr 2013 16:03:48 -0500 Subject: [PATCH 5/5] Repeated term: in --- source/faq/diagnostics.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/faq/diagnostics.txt b/source/faq/diagnostics.txt index 9a7b83f1024..0541c551b77 100644 --- a/source/faq/diagnostics.txt +++ b/source/faq/diagnostics.txt @@ -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