Skip to content

Refactor relocation system with trait-based design #87

@asonnino

Description

@asonnino

Suggestion

Convert RelocationWatermark into a trait with default functions:

  • relocation_file_path
  • load
  • save

Create WalRelocationWatermark and IndexRelocationWatermark that implement this trait.

The current RelocatorDriver would take as input a generic Relocator that implements default functions that are common to all relocation strategies.

Create a separate WalRelocator and IndexRelocator implementing Relocator. These structures are respectively initialised with WalRelocationWatermark and IndexRelocationWatermark and only contain the logic of their respective relocation strategy.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions