Skip to content
This repository has been archived by the owner on Mar 4, 2024. It is now read-only.

New segment format #444

Closed
wants to merge 3 commits into from
Closed

Commits on Jun 26, 2023

  1. uv_segment: Introduce a new disk format for segments.

    The (open) segments now contain the first index of the encoded log
    entries and a checksum over the format and first index fields.
    
    The 24 byte header looks like:
      _________________________________________
     |[0 - 7] |      [8-15] | [16-19] | [20-23]|
     |FORMAT  | FIRST_INDEX |     CRC |  UNUSED|
     |________|_____________|_________|________|
    
    This allows us to no longer guess the start index and do more
    direct checks. This also allows removing the barrier when taking a
    snapshot.
    Mathieu Borderé committed Jun 26, 2023
    Configuration menu
    Copy the full SHA
    884c453 View commit details
    Browse the repository at this point in the history
  2. segment: Add recovery binary for downgrading segments.

    Downgrades all segments in a directory from version 2 to version 1.
    Use in case one has to downgrade dqlite versions.
    Mathieu Borderé committed Jun 26, 2023
    Configuration menu
    Copy the full SHA
    2cf2dcc View commit details
    Browse the repository at this point in the history
  3. wiprecoverytests

    Mathieu Borderé committed Jun 26, 2023
    Configuration menu
    Copy the full SHA
    02ac13a View commit details
    Browse the repository at this point in the history