WT_CURSTD_VALUE_SET is duplicated in the F_CLR bitmask, so WT_CURSTD_KEY_SET is never cleared during search

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Minor - P4
    • WT12.0.0, 9.0.0-rc0
    • Affects Version/s: None
    • Component/s: Cursors
    • None
    • Storage Engines - Foundations
    • 2,458.908
    • None
    • None

      In curstat_search() (src/cursor/cur_stat.c) there is a typo.

      The F_CLR call on the failure path uses WT_CURSTD_VALUE_SET twice instead of WT_CURSTD_KEY_SET | WT_CURSTD_VALUE_SET.

      F_CLR(cursor, WT_CURSTD_VALUE_SET | WT_CURSTD_VALUE_SET); // VALUE_SET OR'd with itself
      

            Assignee:
            Salman Javed
            Reporter:
            cui N/A
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: