Lazily create error message in OplogFetcher::_onSuccessfulBatch

XMLWordPrintableJSON

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

      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
            Reporter:
            Mark Benvenuto
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: