Skip to main content

Module injectivity

Module injectivity 

Source
Expand description

Repair reported short-id residue while preserving unproven data.

A database the superseded repair settled is repaired only when its short-id families disagree. A versioned record distinguishes a verified clean completion, one that left residue, and a settlement whose families agree. Legacy markers are kept present so older binaries skip their superseded repair.

Re-exportsยง

use tuwunel_core::result::NotFound; ๐Ÿ”’
use tuwunel_database::Database; ๐Ÿ”’
use self::seen::MARKER; ๐Ÿ”’
use self::seen::repair; ๐Ÿ”’
use self::seen::run; ๐Ÿ”’
use self::seen::settle; ๐Ÿ”’
use self::seen::stamp; ๐Ÿ”’
use crate::Services; ๐Ÿ”’

Modulesยง

seen ๐Ÿ”’

Constantsยง

CACHE_CLEARED ๐Ÿ”’
LEGACY ๐Ÿ”’
SUPERSEDED ๐Ÿ”’

Functionsยง

fix ๐Ÿ”’
Repairs an eligible database without making repair failures fatal to startup.
mark_clean ๐Ÿ”’
Records a fresh database without scanning its populations.
settled_before ๐Ÿ”’
Whether the superseded repair settled this database before this one ran.
stamp_legacy ๐Ÿ”’
Writes each absent legacy marker so a rollback never reruns the old repair.