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

Profile entry for update/delete should contain entire raw update/delete

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.5.8
    • Component/s: Querying
    • Labels:
      None
    • Backwards Compatibility:
      Minor Change
    • Sprint:
      Query 2017-05-08, Query 2017-05-29

      Description

      The profile entry for update/delete should contain the entire raw update/delete in the command field, i.e. for updates:

      { q: <query>, u: <update>, upsert: <boolean>, multi: <boolean>, ... }
      

      and for deletes:

      { q : <query>, limit : <integer>, ... }
      

      Remove the query, updateobj and collation fields, as they become redundant. Legacy updates/deletes should have the same format in the profile entry.

      Extend profile_*.js tests to ensure that the arrayFilters are logged for update and findAndModify.

      The log lines for individual updates/deletes and the currentOp should have the same command field. Their query, update, and collation fields should be removed.

      The query/insert field should be renamed to command for all command's currentOp, log lines, and profile entries.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              tess.avitabile Tess Avitabile
              Reporter:
              tess.avitabile Tess Avitabile
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: