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

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

    • Fully Compatible
    • Sharding 2020-10-05

      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.

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

              Created:
              Updated:
              Resolved: