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

Rename PrimaryOnlyService::Instance::onCompletion() to getCompletionFuture()

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.7.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • Service arch 2020-09-07

      It's a little confusing right now since Futures provide an onCompletion() method of their own to add completion callbacks, so you can wind up with instance->onCompletion().onCompletion([]{ /*[...]*/ });

       

      This also lets me sidestep a name collision with the existing TransactionCoordinator::onCompletion() method.

            Assignee:
            spencer@mongodb.com Spencer Brody (Inactive)
            Reporter:
            spencer@mongodb.com Spencer Brody (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: