Replace reset_raw() calls with RAII overloads in SBE test files

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Major - P3
    • 9.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Execution
    • Fully Compatible
    • QE 2026-05-25
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      As part of SERVER-120910, OwnedValueAccessor::reset(bool, TypeTags, Value) was renamed to reset_raw(). This ticket converts the remaining reset_raw() call sites in test and benchmark files to use the RAII overloads on AssignableSlotAccessor:

      • reset(TagValueOwned) in place of reset_raw(true, tag, val)
      • reset(TagValueView) in place of reset_raw(false, tag, val)
      • reset(TagValueMaybeOwned) in place of reset_raw(owned_var, tag, val)

      Files in scope

      • src/mongo/db/exec/sbe/sbe_hash_agg_accumulator_test.cpp
      • src/mongo/db/exec/sbe/sbe_limit_skip_test.cpp
      • src/mongo/db/exec/sbe/values/slot_test.cpp
      • src/mongo/db/exec/sbe/vm/vm_bm.cpp
      • src/mongo/db/exec/sbe/expressions/sbe_*_test.cpp (multiple files)
      • src/mongo/db/query/stage_builder/sbe/tests/ (multiple files)

            Assignee:
            Mihai Andrei
            Reporter:
            Mihai Andrei
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: