Module Upper.V5

type gced = {
  1. suffix_start_offset : Optint.Int63.t;
  2. generation : int;
  3. latest_gc_target_offset : Optint.Int63.t;
  4. suffix_dead_bytes : Optint.Int63.t;
  5. mapping_end_poff : Optint.Int63.t option;
}
val gced_t : gced Irmin.Type.t
type status =
  1. | From_v1_v2_post_upgrade of V3.from_v1_v2_post_upgrade
  2. | No_gc_yet
  3. | Used_non_minimal_indexing_strategy
  4. | Gced of gced
  5. | T1
  6. | T2
  7. | T3
  8. | T4
  9. | T5
  10. | T6
  11. | T7
  12. | T8
  13. | T9
  14. | T10
  15. | T11
  16. | T12
  17. | T13
  18. | T14
  19. | T15
val status_t : status Irmin.Type.t
type t = {
  1. dict_end_poff : Optint.Int63.t;
  2. appendable_chunk_poff : Optint.Int63.t;
  3. upgraded_from : int option;
  4. checksum : Optint.Int63.t;
  5. chunk_start_idx : int;
  6. chunk_num : int;
  7. volume_num : int;
  8. status : status;
}

The same as V4.t, with the following modifications:

New fields

  • volume_num stores the number of volumes in the lower layer.
  • mapping_end_poff stores the mapping file size (optional if missing or unknown after a migration from V4).

Changed fields

  • Replaced upgraded_from_v3_to_v4 with generic field upgraded_from to track version upgrades. Note, it is an int option since Version.t option has a bug somewhere in repr that needs further investigation.
val t : t Irmin.Type.t