Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-8647

Fix __curhs_set_key ignores the return from __wt_buf_set

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major - P3
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: Backlog
    • Component/s: None
    • Labels:
      None
    • Sprint:
      Storage - Ra 2022-02-07

      Description

      Summary

      The use of WT_IGNORE_RET ignores the error returned by __wt_buf_set. We should fix this.

          if (arg_count > 1) {
              datastore_key = va_arg(ap, WT_ITEM *);
              WT_IGNORE_RET(__wt_buf_set(
                session, hs_cursor->datastore_key, datastore_key->data, datastore_key->size));
              F_SET(hs_cursor, WT_HS_CUR_KEY_SET);
          } else {
      

      Motivation

      Does this affect any team outside of WT?

      No

      How likely is it that this use case or problem will occur?

      N/A

      If the problem does occur, what are the consequences and how severe are they?

      N/A

      Is this issue urgent?

      Nothing strict, but more testing is more good.

      Acceptance Criteria (Definition of Done)

      Handle the error in a reasonable way.

      Testing

      N/A

      Documentation update

      N/A

        Attachments

          Activity

            People

            Assignee:
            backlog-server-storage-engines Backlog - Storage Engines Team
            Reporter:
            chenhao.qu Chenhao Qu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: