Skip to content

Commit 737d706

Browse files
author
Ed Costello
committed
DOCS-1016 final update/copy edits to undocumented sharding methods
1 parent 0d61d5c commit 737d706

16 files changed

+42
-41
lines changed

source/reference/method/sh._adminCommand.txt

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,13 @@ sh._adminCommand()
66

77
.. method:: sh._adminCommand(cmd, checkMongos)
88

9-
:param string dbcommand: a database command to run against the ``admin``
9+
:param string dbcommand: A database command to run against the ``admin``
1010
database.
1111

12-
:param Boolean checkMongos: verify whether or not the shell is connected
12+
:param Boolean checkMongos: Verify whether or not the shell is connected
1313
to a :program:`mongos` instance.
1414

1515
The :method:`sh._adminCommand` method runs a database command against
1616
the admin database of a :program:`mongos` instance.
1717

18-
.. seealso::
19-
20-
- :method:`db.runCommand`
18+
.. seealso:: :method:`db.runCommand()`

source/reference/method/sh._checkFullName.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ sh._checkFullName()
66

77
.. method:: sh._checkFullName(namespace)
88

9-
:param string namespace: specify a complete namespace.
9+
:param string namespace: Specify a complete namespace.
1010

1111
:throws: "name needs to be fully qualified <db>.<collection>"
1212

1313
The :method:`sh._checkFullName()` method verifies that a namespace
1414
name is well-formed. If the name has a period ``.`` then the
1515
:method:`sh._checkFullName()` method exits, otherwise it throws
16-
an error.
16+
an error.

source/reference/method/sh._lastMigration.txt

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,26 +9,28 @@ sh._lastMigration()
99
:param string namespace: The name of a database or collection within the
1010
current database.
1111

12-
:returns: a document with fields detailing the most recent migration
12+
:returns: A document with fields detailing the most recent migration
1313
in the specified namespace.
1414

1515
:method:`sh._lastMigration()` returns a document with details about
1616
the last migration performed on the database or collection you specify.
17+
18+
Document details:
1719

18-
:field string _id: the id of the migration task
20+
:field string _id: The id of the migration task
1921

20-
:field string server: the name of the server
22+
:field string server: The name of the server
2123

22-
:field string clientAddr: the IP address and port number of the server.
24+
:field string clientAddr: The IP address and port number of the server.
2325

24-
:field ISODate time: the time of the last migration.
26+
:field ISODate time: The time of the last migration.
2527

26-
:field string what: the specific type of migration.
28+
:field string what: The specific type of migration.
2729

28-
:field string ns: the complete namespace of the collection affected
30+
:field string ns: The complete namespace of the collection affected
2931
by the migration.
3032

31-
:field document details: a document containing details about the
33+
:field document details: A document containing details about the
3234
migrated chunk. Includes ``min`` and ``max``
3335
sub-documents with the bounds of the migrated
3436
chunk.

source/reference/method/sh.disableBalancing.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ sh.disableBalancing()
66

77
.. method:: sh.disableBalancing(collection)
88

9-
:param string collection: the name of a collection.
9+
:param string collection: The name of a collection.
1010

1111
:method:`sh.disableBalancing()` disables the balancer for the specified
1212
sharded collection.

source/reference/method/sh.enableBalancing.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ sh.enableBalancing()
66

77
.. method:: sh.enableBalancing(collection)
88

9-
:param string collection: the name of a collection.
9+
:param string collection: The name of a collection.
1010

1111
:method:`sh.enableBalancing()` enables the balancer for the specified
1212
sharded collection.

source/reference/method/sh.enableSharding.txt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,5 @@ sh.enableSharding()
1212
automatically shard any collections, but makes it possible to begin
1313
sharding collections using :method:`sh.shardCollection()`.
1414

15-
.. seealso::
16-
17-
- :ref:`sh.shardCollection()`
18-
15+
.. seealso:: :method:`sh.shardCollection()`
16+

source/reference/method/sh.getBalancerHost.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ sh.getBalancerHost()
66

77
.. method:: sh.getBalancerHost()
88

9-
:returns: string in form :samp:`{hostname}:{port}`
9+
:returns: String in form :samp:`{hostname}:{port}`
1010

1111
:method:`sh.getBalancerHost()` returns the name of the server that is
1212
running the balancer.

source/reference/method/sh.getBalancerState.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ sh.getBalancerState()
66

77
.. method:: sh.getBalancerState()
88

9-
:returns: Boolean
9+
:returns: boolean
1010

1111
:method:`sh.getBalancerState()` returns ``true`` when the
1212
:term:`balancer` is enabled and false if the balancer is

source/reference/method/sh.isBalancerRunning.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ sh.isBalancerRunning()
66

77
.. method:: sh.isBalancerRunning()
88

9-
:returns: Boolean
9+
:returns: boolean
1010

1111
Returns true if the :term:`balancer` process is currently running
1212
and migrating chunks and false if the balancer process is not

source/reference/method/sh.setBalancerState.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ sh.setBalancerState()
66

77
.. method:: sh.setBalancerState(state)
88

9-
:param Boolean state: ``true`` enables the balancer if disabled,
9+
:param boolean state: ``true`` enables the balancer if disabled,
1010
and ``false`` disables the balancer.
1111

1212
Enables or disables the :term:`balancer`. Use

0 commit comments

Comments
 (0)