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

Fix WT_STRING_MATCH macro

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • WT11.2.0, 7.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • 5
    • 2023-05-30 - 7.0 Readiness, StorEng - 2023-06-13

      A few bugs in the WT_STRING_MATCH macro were discovered upon looking into a Coverity issue (see WT-11057 for more details).

      Two possible fixes were suggested in WT-11057 - each with different semantics on how we want WT_STRING_MATCH to behave (i.e. whether we want empty strings to be considered a match or not). A decision should be made on this and documented in a comment in the code to ensure the usage and expectations of the macro are made very clear.

      As part of this ticket, we should also revisit places where we may have previously been working around the potential problems with WT_STRING_MATCH (see the first comment of WT-11057 for one such example).

      Finally, we should run a full WiredTiger patch as well as the required tasks in a MongoDB patch to ensure that there is no unexpected fallout.

            Assignee:
            monica.ng@mongodb.com Monica Ng
            Reporter:
            monica.ng@mongodb.com Monica Ng
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: