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

Prove generating DamageVector from docDiff in unittest

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.1.0-rc0
    • Component/s: None
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Sprint:
      Execution Team 2021-05-31

      Description

      Write a unittest that for a simple BSONObj with a few scalar elements at the root level can generate a docDiff and from that docDiff a DamageVector for a few simple cases:

      • Add new element
      • Change value of existing element

      Use updateWithDamages to write it to WT and verify the result by reading the data back.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              yuhong.zhang Yuhong Zhang
              Reporter:
              henrik.edin Henrik Edin
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: