Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-93493

Check BSON regex options without assumptions about std::string internals

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Execution
    • Fully Compatible
    • 0

      _checkRegexOptions makes assertions in a way that assumes the internals of std::string work a certain way. This may not work for all compilers, possibly causing BF-34483 (a flaky test). This code could be more readable anyway so let's write it an a more clean and idiomatic way.

            Assignee:
            matt.boros@mongodb.com Matt Boros
            Reporter:
            matt.boros@mongodb.com Matt Boros
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: