[DOCS-1874] Comment on: "manual/reference/command/split.txt" Created: 31/Aug/13  Updated: 03/Nov/17  Resolved: 01/Sep/13

Status: Closed
Project: Documentation
Component/s: None
Affects Version/s: None
Fix Version/s: 01112017-cleanup

Type: Improvement Priority: Major - P3
Reporter: auto Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: collector-298ba4e7
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Location: http://docs.mongodb.org/manual/reference/command/split/
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/29.0.1547.62 Safari/537.36
Referrer: https://www.google.com/
Screen Resolution: 1440 x 900
repo: docs
source: reference/command/split


Issue Links:
Duplicate
duplicates DOCS-1844 split chunk docs have incorrect synta... Closed
Participants:
Days since reply: 10 years, 24 weeks, 5 days ago

 Description   

The example for doing a split for a hashed shard key is wrong. It shows this:

db.runCommand(

{ split: "test.people" , bounds : [ NumberLong("-5838464104018346494"), NumberLong("-5557153028469814163")] }

)

This command gives an error. The correct syntax as given in the blog is:

db.runCommand({ split : "mydb.webcrawler_empty", bounds : [

{ "url" : NumberLong("2305843009213693950") }

,

{ "url" : NumberLong("4611686018427387900") }

] })

This syntax works.

Thanks for your work on Mongo and thanks for the great documentation!


Generated at Thu Feb 08 07:42:07 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.