Skip to content

Commit ea5cad0

Browse files
author
Greg Studer
committed
Update source/reference/command/enableSharding.txt
Pretty sure the description here is wrong - need to provide the database name to enableSharding (it's an admin command that gets run against the admin database).
1 parent 3bf8baf commit ea5cad0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/reference/command/enableSharding.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ enableSharding
1111

1212
.. code-block:: javascript
1313

14-
{ enableSharding: 1 }
14+
{ enableSharding: "<database name>" }
1515

1616
Once you've enabled sharding in a database, you can use the :dbcommand:`shardCollection`
1717
command to begin the process of distributing data among the shards.

0 commit comments

Comments
 (0)