Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-1874

Comment on: "manual/reference/command/split.txt"

    • Type: Icon: Task Task
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • 01112017-cleanup
    • Affects Version/s: None
    • Component/s: None
    • Environment:

      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!

            Assignee:
            Unassigned Unassigned
            Reporter:
            auto auto
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              10 years, 41 weeks, 1 day ago