Closed MarinPostma closed 2 weeks ago
This PR proposes a mecanism to configure when the current segment should be swapped with more control.
For this end, the SegmentSwapTrait is introduced that let's us define and compose strategies for when to swap the current segment
SegmentSwapTrait
Two base strategies are also implemented:
those strategy are then composed and used in SharedWal, with the following hardcoded setting:
SharedWal
This PR proposes a mecanism to configure when the current segment should be swapped with more control.
For this end, the
SegmentSwapTrait
is introduced that let's us define and compose strategies for when to swap the current segmentTwo base strategies are also implemented:
those strategy are then composed and used in
SharedWal
, with the following hardcoded setting: