From ecc490717d0aded933248851636500f95207a7c0 Mon Sep 17 00:00:00 2001 From: Zack Brown Date: Tue, 13 Aug 2013 17:09:04 -0400 Subject: [PATCH] DOCS-1602: Add an example to moveChunk --- source/reference/command/moveChunk.txt | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/source/reference/command/moveChunk.txt b/source/reference/command/moveChunk.txt index 5ea1e405906..7dd7e2825c1 100644 --- a/source/reference/command/moveChunk.txt +++ b/source/reference/command/moveChunk.txt @@ -12,20 +12,35 @@ Definition Internal administrative command. Moves :term:`chunks ` between :term:`shards `. Issue the :dbcommand:`moveChunk` command via a :program:`mongos` instance while using the :term:`admin database`. - Use the following form: + Use the following forms: .. code-block:: javascript db.runCommand( { moveChunk : , - find|bounds : , + find : , to : , - _secondaryThrottle : } ) + _secondaryThrottle : } ) + Alternately: + + .. code-block:: javascript + + db.runCommand( { moveChunk : , + bounds : , + to : , + _secondaryThrottle : } ) The :dbcommand:`moveChunk` command has the following fields: .. include:: /reference/command/moveChunk-field.rst + The value of ``bounds`` takes the form: + + .. code-block:: javascript + + [ { hashedField : } , + { hashedField : } ] + The :ref:`chunk migration ` section describes how chunks move between shards on MongoDB.