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

Prove generating DamageVector from docDiff in unittest

    XMLWordPrintable

Details

    • Task
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 5.1.0-rc0
    • None
    • None
    • Fully Compatible
    • 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

              yuhong.zhang@mongodb.com Yuhong Zhang
              henrik.edin@mongodb.com Henrik Edin
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: