server: snapshot

This commit is contained in:
nym21
2026-01-12 12:34:30 +01:00
parent 1b9e18f98b
commit b12a72ea1a
24 changed files with 3619 additions and 5378 deletions

View File

@@ -6,7 +6,7 @@ use std::{
io::{Read, Seek, SeekFrom},
mem,
ops::ControlFlow,
path::PathBuf,
path::{Path, PathBuf},
sync::Arc,
thread,
time::Duration,
@@ -75,6 +75,10 @@ impl ReaderInner {
&self.client
}
pub fn blocks_dir(&self) -> &Path {
&self.blocks_dir
}
pub fn blk_index_to_blk_path(&self) -> RwLockReadGuard<'_, BlkIndexToBlkPath> {
self.blk_index_to_blk_path.read()
}