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

Passing ScopedTaskExecutor by value needlessly increases its refcount

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • Serverless

    Description

      In PrimaryOnlyService::run we pass the stored shared_ptr<executor::ScopedTaskExector by value, which invokes a copy constructor and increases the refcount of the smart pointer needlessly. We should at least pass this value by const-ref.

      Attachments

        Activity

          People

            backlog-server-serverless [DO NOT USE] Backlog - Server Serverless (Inactive)
            matt.broadstone@mongodb.com Matt Broadstone
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: