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

Minor issues with new delete write command

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Fixed
    • Affects Version/s: 2.5.4
    • Fix Version/s: 2.5.4
    • Component/s: Write Ops
    • Labels:
      None
    • Operating System:
      ALL

      Description

      First issue: if you omit the "limit" field from a delete request, the error message returned erroneously says that "ordered" is mising:

      > db.runCommand({
      ... delete:"testcollection",
      ... writeConcern : { w : 1 },
      ... deletes : [{ q : { x : 1 } }, { q : { x : 3 } }]
      ... })
      { "ok" : false, "errCode" : 99999, "errMsg" : "missing ordered field" }
      > db.test.remove

      Second issue: the server should accept any numeric type for the limit value. When I sent an Int64 limit I got this error message:

      "{ 'ok' : false, 'errCode' : 99999, 'errMsg' : 'wrong type for 'limit' field, expected integer, found limit: 1' }"

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: