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

[Server] Add command name in `moveRange` example

    XMLWordPrintableJSON

Details

    Description

      The moveRange documentation committed under DOCS-15363 added an example missing the command name:

      db.adminCommand(
        {
          toShard: <ID of the recipient shard>,
          min: <min key of the range to move>,
          max: <max key of the range to move>, // optional
          forceJumbo: <bool>, // optional
          waitForDelete: <bool>, // optional
          writeConcern: <write concern>, // optional
          secondaryThrottle: <bool> // optional
        }
      )
      

      We must correct it to:

      db.adminCommand(
        {
          moveRange: <namespace>,
          toShard: <ID of the recipient shard>,
          min: <min key of the range to move>,
          max: <max key of the range to move>, // optional
          forceJumbo: <bool>, // optional
          waitForDelete: <bool>, // optional
          writeConcern: <write concern>, // optional
          secondaryThrottle: <bool> // optional
        }
      )
      

      Attachments

        Activity

          People

            joseph.dougherty@mongodb.com Joseph Dougherty
            pierlauro.sciarelli@mongodb.com Pierlauro Sciarelli
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              44 weeks, 1 day ago