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

Moving out of forwarding reference in shardVersionRetry

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.2.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Fully Compatible
    • ALL

      In this code we are moving out of a forwarding reference (callbackFn).  If we pass in an lvalue callable object here, then we are moving out of an lvalue reference, which is dangerous.  We should pass by value instead.

            Assignee:
            andrew.witten@mongodb.com Andrew Witten (Inactive)
            Reporter:
            andrew.witten@mongodb.com Andrew Witten (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: