Uploaded image for project: 'Drivers'
  1. Drivers
  2. DRIVERS-128

Support the SingleRemove flag in OP_DELETE for pre-2.6 servers

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Component/s: None
    • Labels:
      None
    • $i18n.getText("admin.common.words.hide")
      Key Status/Resolution FixVersion
      PYTHON-605 Done 2.7
      $i18n.getText("admin.common.words.show")
      #scriptField, #scriptField *{ border: 1px solid black; } #scriptField{ border-collapse: collapse; } #scriptField td { text-align: center; /* Center-align text in table cells */ } #scriptField td.key { text-align: left; /* Left-align text in the Key column */ } #scriptField a { text-decoration: none; /* Remove underlines from links */ border: none; /* Remove border from links */ } /* Add green background color to cells with FixVersion */ #scriptField td.hasFixVersion { background-color: #00FF00; /* Green color code */ } /* Center-align the first row headers */ #scriptField th { text-align: center; } Key Status/Resolution FixVersion PYTHON-605 Done 2.7

      This is needed to support the bulk API removeOne method when connected to pre-2.6 versions of MongoDB. A new parameter should be added to the existing remove method, named "multi" to match the update method. When set to true (the default) remove will keep its current behavior of removing all documents that match the query criteria. When set to false only the first matching document is removed. The server behavior is configured through the SingleRemove option of OP_DELETE:

      http://docs.mongodb.org/meta-driver/latest/legacy/mongodb-wire-protocol/#op-delete

      If your driver already supports this behavior, regardless of existing parameter name, no changes are required. Just validate this ticket.

            Assignee:
            barrie Barrie Segal
            Reporter:
            barrie Barrie Segal
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: