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

Prove generating DamageVector from docDiff in unittest

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 5.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • Execution Team 2021-05-31

      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.

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

              Created:
              Updated:
              Resolved: