Preserve live prepared-lower materializations during recovery

This commit is contained in:
ms2k 2026-07-21 23:47:29 +09:00
commit 85f0db08d7

View file

@ -5,6 +5,7 @@ use std::os::unix::fs::{MetadataExt, PermissionsExt};
use std::path::{Path, PathBuf};
use std::sync::{Arc, Barrier};
use std::thread;
use std::time::{Duration, Instant};
use flate2::Compression;
use flate2::write::GzEncoder;
@ -75,6 +76,15 @@ impl Fixture {
artifact.path.as_bytes().to_vec(),
)))
}
fn independent_store(&self) -> (Catalog, PreparedLowerStore) {
let catalog = Catalog::new(
self.root.join("catalog.redb"),
self.root.join("storage-catalog.lock"),
);
let store = PreparedLowerStore::initialize(&self.root, catalog.clone()).unwrap();
(catalog, store)
}
}
#[test]