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

Add missing brackets around parameter in macro definition

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: WT10.0.1, 5.1.0, 4.4.8, 5.0.2
    • Component/s: None
    • Labels:
    • Environment:
      All
    • Story Points:
      2
    • Sprint:
      Storage - Ra 2021-06-28

      Description

      In the definition of macro WT_CHECK_RECOVERY_FLAG_TS_TXNID, the durablets parameter is not surrounded by parentheses in the implementation. This could cause unexpected behaviour should an expression be passed in as a parameter. 

      Macro parameters should always be surrounded by parentheses in the implementation. See here, for example. 

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jeremy.thorp Jeremy Thorp
              Reporter:
              jeremy.thorp Jeremy Thorp
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: