Skip to main content

replay_state_dir_from_env

Function replay_state_dir_from_env 

Source
pub(crate) fn replay_state_dir_from_env(parquet_root: &Path) -> Option<PathBuf>
Expand description

Reads the replay-guard settings.

ARCHIVER_REPLAY_GUARD=off (also 0, false or no) turns the guard off. Otherwise checkpoints live in ARCHIVER_STATE_DIR, or in .archiver-state under the Parquet root when that is not set.

§Arguments

  • parquet_root - Root output directory.

§Returns

The checkpoint directory, or None when the guard is off.