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

TenantMigrationDonorService::Instance::run should capture 'this' as 'shared_from_this'

    XMLWordPrintableJSON

Details

    • Fully Compatible
    • Sharding 2020-10-05

    Description

      The continuations should capture 'shared_from_this' because once the state document is deleted, all shared_ptr references to 'this' in the Primary-Only Service machinery are destroyed.

      In the TenantMigrationDonorService::Instance's case, the state doc is marked as garbage collectable here, so can be deleted by the TTL index any time after that, including before theĀ final continuations run.

      Attachments

        Activity

          People

            jason.zhang@mongodb.com Jason Zhang
            esha.maharishi@mongodb.com Esha Maharishi (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: