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

Server-side rewrite for update and delete commands on mongos

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Fully Compatible
    • QO 2022-03-21, QO 2022-04-04

      From the design:

      Update and delete are both write commands which are handled through the BatchedCommandRequest class. The "q" field on UpdateOpEntry and DeleteOpEntry contains the BSON for a MatchExpression. If there may be FLE2 rewrites to be done, after update and delete commands are parsed we will add a transformation pass similar to findAndModify which will take in BSON for a MatchExpression and return BSON for the rewritten MatchExpression, calling rewriteQueryOnEncryptedFields() on the parsed MatchExpression. This rewritten match expression will be inserted into the parsed request document and returned from the parsing functions.

            Assignee:
            davis.haupt@mongodb.com Davis Haupt (Inactive)
            Reporter:
            davis.haupt@mongodb.com Davis Haupt (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: