Structsยง
Constantsยง
- MIN_
DURATION_ ๐BETWEEN_ BACKUP_ UPDATES - The minimum duration that Zebra will wait between updates to the non-finalized state backup cache.
Functionsยง
- list_
backup_ ๐dir_ entries - Accepts a backup directory path, opens the directory, converts its entries filenames to block hashes, and deletes any entries with invalid file names.
- process_
backup_ ๐dir_ entry - Accepts a
DirEntry
from the non-finalized state backup directory and parses the filename into a block hash. - read_
backup_ ๐dir - Accepts a backup directory path and opens the directory.
- read_
non_ ๐finalized_ blocks_ from_ backup - Reads blocks from the provided non-finalized state backup directory path.
- restore_
backup ๐ - Accepts an optional path to the non-finalized state backup directory and a handle to the database.
- run_
backup_ ๐task - Updates the non-finalized state backup cache whenever the non-finalized state changes, deleting any outdated backup files and writing any blocks that are in the non-finalized state but missing in the backup cache.
- write_
backup_ ๐block - Writes a block to a file in the provided non-finalized state backup cache directory path.