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

Lazily create error message in OplogFetcher::_onSuccessfulBatch

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

      Today, we eagerly create the error message in OplogFetcher::_onSuccessfulBatch which is a waste of memory. Defer this until it is needed by encapsulating the error message creation in a lambda.

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

              Created:
              Updated:
              Resolved: