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

Simplify `RangeDeleterService::registerTask` by removing `blockUntilRegistered`

    • Fully Compatible

      Currently, RangeDeleterService::registerTask is using the blockUntilRegistered promise to "block" the future chain and invalidate it when trying to schedule a duplicated task.

      Purpose of this ticket is to remove the blockUntilRegistered promise and replace the insert in the set with the following:

      • To know if the element is already present, checking the info returned by lower_bound
      • If not present
        • Create the future chain
        • Emplace it in the set using the hint returned by lower_bound to

            Assignee:
            pierlauro.sciarelli@mongodb.com Pierlauro Sciarelli
            Reporter:
            pierlauro.sciarelli@mongodb.com Pierlauro Sciarelli
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: