Preserve live prepared-lower materializations during recovery
This commit is contained in:
parent
6eba9f25ca
commit
85f0db08d7
1 changed files with 205 additions and 47 deletions
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Reference in a new issue