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

Change Locker::setDebugInfo to take ownership of the string

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
    • Server Security
    • Fully Compatible
    • ALL
    • Security 2024-03-04, Security 2024-03-18

      The string is copied today which is a waste when generally they are temporary strings.

      There are two cases in the code where code does

      locker->setDebugInfo(obj.toBSON().toString()) 

      which wastes a lot of memory

            Assignee:
            mark.benvenuto@mongodb.com Mark Benvenuto
            Reporter:
            mark.benvenuto@mongodb.com Mark Benvenuto
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: