Details
- 
    
Sub-Task
 - 
    Status: Closed (View Workflow)
 - 
    
Minor
 - 
    Resolution: Done
 - 
    None
 - 
    None
 - 
    None
 
- 
        2021-4, 2021-5, 2021-6, 2021-8, 2021-9, 2021-10, 2021-11, 2021-12, 2021-13
 
Description
To proper restore individual extent we have to calculate HWM from the segment file.
At the current version, segment file has a field `blockCount` which specifies an amount of preallocated blocks inside segment file, but HWM specifies the the last filled block - 1. So based on block count, we can make a binary search for range (0, blockCount) and find the first block with the empty value. Since those file are compressed we have to use header ptrs part.
Note: The HWM is important part, adding this will solve the problem `cpiinfo` as well, the bulk is using `batch` insertion, so it aligns rows to block size (even if we insert 1 row it will increment HWM by one).
Attachments
Issue Links
- is part of
 - 
                    
MCOL-4566 rebuildEM utility must support compressed segment files
-         
 - Closed
 
 -