remove use of unsupported {:?} format in 8.0 branch

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 9.0.0-rc0, 8.0.24
    • Affects Version/s: None
    • Component/s: None
    • None
    • Server Programmability
    • Fully Compatible
    • ALL
    • v8.0, v7.0
    • Programmability 2023-03-30, Programmability 2026-04-28
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      See https://jira.mongodb.org/browse/HELP-92666

      The new error recovery code is using a ":?" format, which uses a feature of the fmtlib library that didn't exist in the version of fmtlib (v7) that the 8.0 branch uses.
      src/mongo/util/procparser.cpp:153

          return {ErrorCodes::FileStreamFailed, fmt::format("Huge file {:?}", filename)};} 

      Changing this line to 

          return {ErrorCodes::FileStreamFailed, fmt::format("Huge file '{}'", filename)};} 

      Will fix it.

      master (fix not needed here)

      v8.0 branch

       

            Assignee:
            Billy Donahue
            Reporter:
            Billy Donahue
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: