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

Remove RecordStore::compactsInPlace()

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 4.3.1
    • Affects Version/s: None
    • Component/s: Storage
    • Labels:
    • Fully Compatible
    • Execution Team 2019-09-23

      All storage engines (except mobile) return true for this function.

      Mobile does not support compacting, so RecordStore::compactSupported() returns false and makes the compactsInPlace() check redundant in this case.

      We can assume that any storage engine that can compact will do so in-place. We may remove the compactsInPlace() check and all the alternative logic after this check inĀ collection_compact.cpp

            Assignee:
            evgeni.dobranov@mongodb.com Evgeni Dobranov
            Reporter:
            evgeni.dobranov@mongodb.com Evgeni Dobranov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: