[SERVER-43199] Remove RecordStore::compactsInPlace() Created: 06/Sep/19  Updated: 29/Oct/23  Resolved: 13/Sep/19

Status: Closed
Project: Core Server
Component/s: Storage
Affects Version/s: None
Fix Version/s: 4.3.1

Type: Task Priority: Minor - P4
Reporter: Evgeni Dobranov Assignee: Evgeni Dobranov
Resolution: Fixed Votes: 0
Labels: neweng
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Execution Team 2019-09-23
Participants:

 Description   

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



 Comments   
Comment by Githook User [ 13/Sep/19 ]

Author:

{'name': 'Evgeni Dobranov', 'username': 'edobranov', 'email': 'evgeni.dobranov@mongodb.com'}

Message: SERVER-43199 Remove RecordStore::compactsInPlace()
Branch: master
https://github.com/mongodb/mongo/commit/28406222b49c1bbdf71465e3067be72734dc5a01

Generated at Thu Feb 08 05:02:32 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.