Skip to content

Commit e8be513

Browse files
authored
DOCS-15728 sh.moveChunk can't be used with hashed shard key (mongodb#2386)
* DOCS-15728 sh.moveChunk can't be used with hashed shard key * add monospacing
1 parent ae6357c commit e8be513

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

source/reference/method/sh.moveChunk.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
.. _sh-move-chunk:
2+
13
==============
24
sh.moveChunk()
35
==============
@@ -25,6 +27,13 @@ Definition
2527
automatically migrate :term:`chunks <chunk>`, and avoid calling
2628
:method:`sh.moveChunk()` directly.
2729

30+
.. warning::
31+
32+
This command cannot be used for hashed shard keys, as it
33+
uses the ``find`` option from the :dbcommand:`moveChunk` command.
34+
To move a chunk with a :term:`hashed shard key`, use the
35+
:dbcommand:`moveChunk` command specifying the ``bounds`` field.
36+
2837
:method:`sh.moveChunk()` takes the following arguments:
2938

3039
.. list-table::

0 commit comments

Comments
 (0)