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

Fix __curhs_set_key ignores the return from __wt_buf_set

    XMLWordPrintable

Details

    • 3
    • Storage - Ra 2022-03-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

            sean.watt@mongodb.com Sean Watt
            chenhao.qu@mongodb.com Chenhao Qu
            Sid Mahajan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: