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

Add missing brackets around parameter in macro definition

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor - P4
    • Resolution: Fixed
    • None
    • WT10.0.1, 4.4.8, 5.0.2, 5.1.0-rc0
    • None
    • All
    • 2
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: