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

Add missing brackets around parameter in macro definition

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • WT10.0.1, 4.4.8, 5.0.2, 5.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Environment:
      All
    • 2
    • Storage - Ra 2021-06-28

      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. 

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

              Created:
              Updated:
              Resolved: