Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-2780

reIndex command returns "ok" element twice in result

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Fixed
    • Affects Version/s: 1.8.0
    • Fix Version/s: 1.9.0
    • Component/s: None
    • Labels:
      None
    • Environment:
      Windows 7 64-bit.
    • Operating System:
      ALL

      Description

      When the reIndex command is run the result document has two "ok" elements. Here's the output when run from the mongo shell:

      > db.test.reIndex()
      {
      "nIndexesWas" : 2,
      "msg" : "indexes dropped for collection",
      "ok" : 1,
      "nIndexes" : 2,
      "indexes" : [
      {
      "name" : "id",
      "ns" : "test.test",
      "key" :

      { "_id" : 1 }

      ,
      "v" : 0
      },
      {
      "_id" : ObjectId("4d82279930d845dde2ea8fd1"),
      "ns" : "test.test",
      "key" :

      { "x" : 1 }

      ,
      "name" : "x_1",
      "v" : 0
      }
      ],
      "ok" : 1
      }
      >

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: