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

reIndex command returns "ok" element twice in result

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 1.9.0
    • Affects Version/s: 1.8.0
    • Component/s: None
    • Labels:
      None
    • Environment:
      Windows 7 64-bit.
    • ALL

      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
      }
      >

            Assignee:
            eliot Eliot Horowitz (Inactive)
            Reporter:
            robert@mongodb.com Robert Stam
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: