Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
Aleph::CA::Checkpoint_Options Struct Reference

User-tunable knobs for save_checkpoint. More...

#include <ca-checkpoint.H>

Public Attributes

bool compress = false
 Enable DEFLATE compression of the frame payload.
 
int level = 6
 DEFLATE level in [1, 9]. 0 falls back to 6.
 
bool sync_dir = true
 Call fsync on the parent directory after the atomic rename.
 

Detailed Description

User-tunable knobs for save_checkpoint.

Defaults preserve the Phase 15 behaviour (raw, uncompressed bytes, no fsync on the parent directory). Phase 17 callers that care about crash safety should keep sync_dir = true.

Definition at line 412 of file ca-checkpoint.H.

Member Data Documentation

◆ compress

bool Aleph::CA::Checkpoint_Options::compress = false

Enable DEFLATE compression of the frame payload.

Definition at line 415 of file ca-checkpoint.H.

Referenced by TEST(), TEST(), and TEST().

◆ level

int Aleph::CA::Checkpoint_Options::level = 6

DEFLATE level in [1, 9]. 0 falls back to 6.

Definition at line 417 of file ca-checkpoint.H.

◆ sync_dir

bool Aleph::CA::Checkpoint_Options::sync_dir = true

Call fsync on the parent directory after the atomic rename.

Costly but required for survival across kernel crashes.

Definition at line 420 of file ca-checkpoint.H.


The documentation for this struct was generated from the following file: