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

Could db commands take k/v pairs in any order?

    XMLWordPrintableJSON

Details

    • Icon: Question Question
    • Resolution: Won't Fix
    • Icon: Minor - P4 Minor - P4
    • None
    • None
    • None
    • None

    Description

      > db.$cmd.findOne(

      {deleteIndexes: "y", index: "bar_1_baz_1_foo_1"}

      )

      {"nIndexesWas" : 4 , "ok" : 1}

      > db.$cmd.findOne(

      {index: "bar_1_baz_1_foo_1", deleteIndexes: "y"}

      )

      {"errmsg" : "no such cmd" , "ok" : 0}

      This kind of sucks for Perl, as it hashes those particular k/v's with "index" first. If people try something like:

      $db->run_command(

      { whatever => ...}

      )

      it might not work and be confusing as to why.

      Attachments

        Activity

          People

            eliot Eliot Horowitz (Inactive)
            kristina Kristina Chodorow (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: