-
Type:
Task
-
Resolution: Done
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Checkpoints
-
Storage Engines - Persistence
-
720.275
-
SE Persistence - 2026-04-10
-
None
The early portion of __checkpoint_db_internal handles setup that is logically distinct from the core checkpoint execution. This includes:
- Resetting per-checkpoint statistics
- Initializing timers and progress tracking
This makes the function harder to read and contributes to a higher LOC and cyclomatic complexity. The aim of this ticket is to create a helper function that isolates the setup phase, making the __checkpoint_db_internal easier to follow and reducing the LOC and cyclomatic complexity.
Proposed Approach
Create a new static _checkpoint_init helper in. Move the init blockĀ into the new function. This is a pure refactor, no checkpoint behavior changes.
Definition of Done
- _checkpoint_init helper exists and is called from _checkpoint_db_internal
- Existing tests pass