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

Moving out of forwarding reference in shardVersionRetry

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 6.2.0-rc0
    • None
    • None
    • None
    • Fully Compatible
    • ALL

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: