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

Refactor `deleteRangeInBatches` to don't require an executor

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 6.1.0-rc0
    • None
    • None
    • None
    • Fully Compatible
    • Sharding EMEA 2022-07-11, Sharding EMEA 2022-07-25

    Description

      The deleteRangeInBatches function is currently accepting as argument an executor and returning an ExecutorFuture. However, with the introduction of the range deleter service, the deletion will have to be called from within an executor.

      Purpose of this ticket is to pull out the current code in a function deleteRangeInBatches, make it accept an OperationContext* and make it public. This way it can both be called by the legacy range deleter (via a new function deleteRangeInBatchesWithExecutor) and by the new range deleter service.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: