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

WTRecordStore setKey should take key by pointer to avoid usage errors

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.9.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • Execution Team 2021-03-08

      The setKey function accepts a key by const reference, but this is problematic because the WT set_key API requires the key to exist after the API call.

      To avoid misuse of the API by callers passing in a temporary, require callers to pass a key by pointer.

            Assignee:
            louis.williams@mongodb.com Louis Williams
            Reporter:
            louis.williams@mongodb.com Louis Williams
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: