~ knotless Search/
↑↓ move↵ open⇧↵ all results
0
0

A log is given room ahead, so a sync carries no change of size

Closed chadtmiller.com asked to merge into main from chadtmiller.com/monolith:store/log-ahead
bench/store/Cargo.lock+1−0
@@ -558,6 +558,7 @@ dependencies = [
name = "pds-store"
version = "0.1.0"
dependencies = [
"rustix",
"serde_json",
"sha2",
]
crates/pds-server/src/lifecycle/tests.rs+2−2
@@ -1740,7 +1740,7 @@ async fn a_deletion_cut_short() {
.await
.unwrap();
let log = crate::log::accounts_log(&e.dir);
let before = std::fs::read(&log).unwrap();
let before = crate::log::log_bytes(&log);
let repo = std::fs::read(crate::log::repo_log(&e.dir, &did)).unwrap();
e.call(
DELETE,
@@ -1749,7 +1749,7 @@ async fn a_deletion_cut_short() {
)
.await
.unwrap();
let after = std::fs::read(&log).unwrap();
let after = crate::log::log_bytes(&log);
assert!(after.len() > before.len() && after.starts_with(&before));
let work = scratch("life-cut-work");
for cut in before.len()..=after.len() {
crates/pds-server/src/cache.rs+4−4
@@ -455,8 +455,8 @@ impl Slot {
}
/// The bytes of its logs and its checkpoint (`ops::metrics`): as its
/// store's log counts them, or, while it is not loaded, as its files'
/// sizes are, read without loading it.
/// store's log counts them, or, while it is not loaded, as its files
/// hold them (`directory::files_bytes`), read without loading it.
pub fn log_bytes(&self) -> u64 {
// Held while its files are read: nothing loads it meanwhile.
let g = crate::read(&self.store);
@@ -748,7 +748,7 @@ mod tests {
drop(s);
// The last write cut short, as a kill during it leaves it.
let log = crate::log::repo_log(&dir, &alice);
let bytes = std::fs::read(&log).unwrap();
let bytes = crate::log::log_bytes(&log);
let frames = pds_store::scan(&bytes).0;
let last = pds_store::frame(frames.last().unwrap()).len();
std::fs::write(&log, &bytes[..bytes.len() - last / 2]).unwrap();
@@ -811,7 +811,7 @@ mod tests {
drop(s);
// The last account's last write cut short, as a kill during it leaves it.
let log = crate::log::repo_log(&dir, &accounts[11]);
let bytes = std::fs::read(&log).unwrap();
let bytes = crate::log::log_bytes(&log);
std::fs::write(&log, &bytes[..bytes.len() - 100]).unwrap();
let s = lazy(&dir, &plc, 1 << 30);
for (did, held) in accounts.iter().zip(&held) {
crates/pds-server/src/compact.rs+10−6
@@ -1674,11 +1674,14 @@ mod tests {
let state = format!("{:?}", after.0);
assert!(!state.contains(&bob) && state.contains(&alice), "{state}");
assert_eq!(app.exchange(&code, &pushed).await.status, 400);
let restarted = open(&dir, &plc);
let restarted = open(&crate::log::copied(&dir), &plc);
assert_eq!(restarted.oauth.snapshot(), after.0);
drop(restarted);
srv.svc.log.compact().unwrap();
assert_eq!(open(&dir, &plc).oauth.snapshot(), after.0);
assert_eq!(
open(&crate::log::copied(&dir), &plc).oauth.snapshot(),
after.0
);
// Alice's session works on.
assert_eq!(
app.refresh(&text(&alice_tokens, "refresh_token"))
@@ -1785,7 +1788,7 @@ mod tests {
app.refresh(&text(&other, "refresh_token")).await.error(),
"invalid_grant"
);
assert_eq!(sessions(&open(&dir, &plc)), 0);
assert_eq!(sessions(&open(&crate::log::copied(&dir), &plc)), 0);
// Its app password is gone; the session made with it refreshes.
assert_eq!(
call(
@@ -1818,9 +1821,10 @@ mod tests {
.await
.unwrap();
let keeps = srv.svc.sessions.snapshot();
assert_eq!(open(&dir, &plc).sessions.snapshot(), keeps);
let restarted = || open(&crate::log::copied(&dir), &plc).sessions.snapshot();
assert_eq!(restarted(), keeps);
srv.svc.log.compact().unwrap();
assert_eq!(open(&dir, &plc).sessions.snapshot(), keeps);
assert_eq!(restarted(), keeps);
call(
&srv.svc,
"com.atproto.server.activateAccount",
@@ -1843,7 +1847,7 @@ mod tests {
.await
.unwrap();
assert_eq!(sessions(&srv.svc), 0);
assert_eq!(sessions(&open(&dir, &plc)), 0);
assert_eq!(sessions(&open(&crate::log::copied(&dir), &plc)), 0);
}
let _ = std::fs::remove_dir_all(&dir);
}
crates/pds-server/src/directory.rs+5−5
@@ -740,17 +740,17 @@ pub(crate) fn sweep_once(svc: &crate::Shared) {
}
/// The bytes of the logs and the checkpoint of the account `did`, which is
/// not loaded, as its files' sizes are.
/// not loaded: its checkpoint's size, and what each log holds, less the
/// room a kill left after its frames (`pds_store::log_len`).
pub(crate) fn files_bytes(dir: &Path, did: &str) -> u64 {
let layout = crate::store::account_layout(dir, did);
let size = |p: std::path::PathBuf| std::fs::metadata(p).map_or(0, |m| m.len());
let logs: u64 = layout
.generations()
.unwrap_or_default()
.into_iter()
.map(|g| size(layout.log(g)))
.map(|g| pds_store::log_len(&layout.log(g)).unwrap_or(0))
.sum();
logs + size(layout.checkpoint())
logs + std::fs::metadata(layout.checkpoint()).map_or(0, |m| m.len())
}
#[cfg(test)]
@@ -850,7 +850,7 @@ mod tests {
fn synthetic(dir: &Path, n: usize) -> Vec<String> {
let hash = crate::server::password::hash("pw");
let log = crate::log::accounts_log(dir);
let mut bytes = std::fs::read(&log).unwrap();
let mut bytes = crate::log::log_bytes(&log);
bytes.extend(pds_store::frame(&[
json!({ "t": crate::events::SEQS, "upto": 100_000 }),
]));
crates/pds-server/src/log.rs+259−20
@@ -100,6 +100,77 @@ pub(crate) fn repo_log(dir: &FsPath, did: &str) -> PathBuf {
crate::store::account_layout(dir, did).log(0)
}
/// A copy of the data directory `dir` as it is now, beside it: what a
/// server started again would find, for one to start on while the server
/// on `dir`, which holds its logs, goes on.
#[cfg(test)]
pub(crate) fn copied(dir: &FsPath) -> PathBuf {
let to = dir.with_extension("copy");
let _ = std::fs::remove_dir_all(&to);
let mut todo = vec![dir.to_path_buf()];
while let Some(d) = todo.pop() {
std::fs::create_dir_all(to.join(d.strip_prefix(dir).unwrap())).unwrap();
for e in std::fs::read_dir(&d).unwrap() {
let p = e.unwrap().path();
if p.is_dir() {
todo.push(p);
} else {
std::fs::copy(&p, to.join(p.strip_prefix(dir).unwrap())).unwrap();
}
}
}
to
}
/// What the log at `path` holds: its file's bytes, without the room after
/// its frames, which a server running, stopped or killed leaves there
/// (`pds_store`).
#[cfg(test)]
pub(crate) fn log_bytes(path: &FsPath) -> Vec<u8> {
without_room(std::fs::read(path).unwrap())
}
/// A log's bytes without the room after its frames: the zeros they end with.
#[cfg(test)]
fn without_room(mut log: Vec<u8>) -> Vec<u8> {
log.truncate(log.iter().rposition(|&b| b != 0).map_or(0, |last| last + 1));
log
}
/// The logs opened on each data directory, in tests alone, where one
/// process starts a server on a directory again and again while tasks of
/// the server before still hold it: a start closes that server's logs
/// first, as the restart of a process ends its writers (`Wal::close`).
#[cfg(test)]
static OPENED: Mutex<Vec<(PathBuf, std::sync::Weak<Wal>)>> = Mutex::new(Vec::new());
/// A log as the server holds it, opened on the data directory `dir`.
fn held(dir: &FsPath, wal: Wal) -> Arc<Wal> {
let wal = Arc::new(wal);
#[cfg(test)]
OPENED
.lock()
.unwrap_or_else(PoisonError::into_inner)
.push((dir.to_path_buf(), Arc::downgrade(&wal)));
let _ = dir;
wal
}
/// Close every log a server before opened on `dir` and still holds.
#[cfg(test)]
fn stop_writers(dir: &FsPath) {
OPENED
.lock()
.unwrap_or_else(PoisonError::into_inner)
.retain(|(of, wal)| match wal.upgrade() {
Some(wal) if of == dir => {
wal.close();
false
}
held => held.is_some(),
});
}
/// An account as `accounts.log` has it.
pub(crate) struct AccountEntry {
pub did: String,
@@ -511,7 +582,7 @@ pub(crate) fn open_repo(ctx: &Arc<Ctx>, did: &str, key: &SigningKey) -> Result<R
Ok(Recovered {
store: Store {
repo,
wal: Arc::new(wal),
wal: held(dir, wal),
blobs: small.blobs,
takedowns: small.takedowns,
spaces: small.spaces,
@@ -538,7 +609,7 @@ pub(crate) fn new_repo(ctx: &Arc<Ctx>, did: &str, key: &SigningKey) -> io::Resul
}
Ok(Store {
repo: Repo::new(did.to_string(), key.clone()),
wal: Arc::new(wal),
wal: held(&ctx.dir, wal),
blobs: Default::default(),
takedowns: Default::default(),
spaces: Default::default(),
@@ -608,6 +679,8 @@ impl Service {
/// were reserved (`events::SEQS`).
pub(crate) fn open(dir: &FsPath, config: Config) -> Result<Service, String> {
use std::os::unix::fs::PermissionsExt;
#[cfg(test)]
stop_writers(dir);
pds_store::make_dirs(dir).map_err(|e| format!("{}: {e}", dir.display()))?;
std::fs::set_permissions(dir, std::fs::Permissions::from_mode(pds_store::DIR_MODE))
.map_err(|e| format!("{}: {e}", dir.display()))?;
@@ -765,7 +838,7 @@ impl Service {
// A data directory from before seqs were reserved: every account's
// log is read for the greatest seq it holds.
let upgrade = ceiling.is_none() && accounts.count() > 0;
let log = Arc::new(log);
let log = held(dir, log);
let logged_events = lifecycle
.events
.drain(..)
@@ -1072,8 +1145,22 @@ mod tests {
.collect()
}
/// Every file in the data directory, and its bytes.
/// Every file in the data directory, and its bytes: of a log, those it
/// holds, without the room after its frames (`pds_store`), as a power
/// cut the room did not outlive leaves it.
fn files(dir: &Path) -> BTreeMap<PathBuf, Vec<u8>> {
let mut files = files_whole(dir);
for (_, bytes) in files
.iter_mut()
.filter(|(p, _)| p.extension().is_some_and(|e| e == "log"))
{
*bytes = super::without_room(std::mem::take(bytes));
}
files
}
/// Every file in the data directory, and its bytes, room and all.
fn files_whole(dir: &Path) -> BTreeMap<PathBuf, Vec<u8>> {
let mut out = BTreeMap::new();
let mut todo = vec![dir.to_path_buf()];
while let Some(d) = todo.pop() {
@@ -1096,7 +1183,7 @@ mod tests {
/// so that the logs recovery makes durable are mostly durable already.
fn put_files(dir: &Path, files: &BTreeMap<PathBuf, Vec<u8>>) {
let have = if dir.exists() {
self::files(dir)
files_whole(dir)
} else {
BTreeMap::new()
};
@@ -1110,6 +1197,12 @@ mod tests {
}
}
/// A log, or the first of one, with `room` zeros after it: as a kill
/// leaves a log written to again (`pds_store`).
fn with_room(log: &[u8], room: usize) -> Vec<u8> {
[log, &vec![0u8; room]].concat()
}
/// A step of the script: the files after it, and the state.
struct Step {
files: BTreeMap<PathBuf, Vec<u8>>,
@@ -1223,6 +1316,62 @@ mod tests {
let _ = std::fs::remove_dir_all(&dir);
}
/// A data directory written before logs had room, each log its frames
/// alone, is started on and carried on from. Its logs are given room as
/// they are written to, which no count of their bytes includes; and a
/// server killed with that room in them starts as one killed without.
#[tokio::test]
async fn logs_with_no_room_are_carried_on() {
let plc = plc().await;
let dir = scratch("room-src");
let (steps, accounts) = script(&dir, &plc).await;
let last = steps.last().unwrap();
let work = scratch("room-work");
put_files(&work, &last.files);
assert_eq!(files_whole(&work), last.files);
let s = open(&work, &plc);
assert_eq!(state(&s), last.state);
for n in 0..3 {
for (did, token) in &accounts {
let body = json!({ "repo": did, "collection": "a.b.c", "rkey": format!("more{n}"), "record": record(n) });
call(&s, "com.atproto.repo.putRecord", Some(token), body)
.await
.unwrap();
}
}
let (killed, bare) = (files_whole(&work), files(&work));
for (did, _) in &accounts {
let log = repo_log(Path::new(""), did);
let (file, frames) = (killed[&log].len(), bare[&log].len());
assert!(file > frames, "{file} bytes of file, {frames} of frames");
assert_eq!(store::scan(&killed[&log]).1, frames);
// The log's bytes are its frames', by its own count and by its file.
let counted = s.account(did).unwrap().store.log_bytes();
assert_eq!(counted, frames as u64);
assert_eq!(crate::directory::files_bytes(&work, did), counted);
}
let after = state(&s);
drop(s);
for (name, disk) in [("room-killed", &killed), ("room-bare", &bare)] {
let again = scratch(name);
put_files(&again, disk);
let s = open(&again, &plc);
assert_eq!(state(&s), after, "{name}");
let (bob, token) = &accounts[1];
let body =
json!({ "repo": bob, "collection": "a.b.c", "rkey": "after", "record": record(9) });
call(&s, "com.atproto.repo.putRecord", Some(token), body)
.await
.unwrap();
let now = state(&s);
drop(s);
assert_eq!(state(&open(&again, &plc)), now, "{name}");
let _ = std::fs::remove_dir_all(&again);
}
let _ = std::fs::remove_dir_all(&dir);
let _ = std::fs::remove_dir_all(&work);
}
/// Logs whose frames are intact but whose entries are not what the
/// server wrote are refused with a reason, not a panic.
#[tokio::test]
@@ -1454,8 +1603,14 @@ mod tests {
call(&s, "com.atproto.repo.putRecord", Some(token), body)
.await
.unwrap();
let again = open(&work, &plc);
assert_eq!(state(&again), state(&s), "{} cut at {cut}", path.display());
let now = state(&s);
drop(s);
assert_eq!(
state(&open(&work, &plc)),
now,
"{} cut at {cut}",
path.display()
);
}
}
// A damaged byte anywhere in the frame drops it.
@@ -1476,6 +1631,78 @@ mod tests {
let _ = std::fs::remove_dir_all(&work);
}
/// A frame written over room and cut at every byte, the room after the
/// cut as it was: the shortest write the script made to an account's
/// log, and the one it made to the service log alone. Recovery must
/// give the state before that write or after it, and keep working, as
/// where the file ends at the cut
/// (`torn_writes_recover_to_before_or_after`).
#[tokio::test]
async fn writes_torn_in_room_recover_to_before_or_after() {
let plc = plc().await;
let dir = scratch("torn-room-src");
let (steps, accounts) = script(&dir, &plc).await;
let (bob, token) = &accounts[1];
let work = scratch("torn-room-work");
let service = PathBuf::from(ACCOUNTS_LOG_FILE);
// Of the steps that change one log, the service log or an account's,
// the one of each kind whose frame is shortest.
let mut shortest: BTreeMap<bool, (usize, &[Step], &PathBuf)> = BTreeMap::new();
for w in steps.windows(2).skip(2) {
let changed: Vec<&PathBuf> = w[1]
.files
.keys()
.filter(|p| w[0].files.get(*p) != w[1].files.get(*p))
.collect();
let [path] = changed[..] else { continue };
let len = w[1].files[path].len() - w[0].files[path].len();
let of = shortest.entry(*path == service).or_insert((len, w, path));
if len < of.0 {
*of = (len, w, path);
}
}
assert_eq!(shortest.len(), 2, "a write to each kind of log");
let mut cuts = 0;
for (_, w, path) in shortest.into_values() {
let (from, to) = (w[0].files[path].len(), w[1].files[path].len());
let whole = &w[1].files[path];
assert!(whole.starts_with(&w[0].files[path]));
for cut in from..=to {
// What of the frame reached the disk, then zeros to past
// where it ends.
let mut files = w[1].files.clone();
files.insert(path.clone(), with_room(&whole[..cut], to - cut + 1500));
put_files(&work, &files);
let s = open(&work, &plc);
let want = if cut == to { &w[1].state } else { &w[0].state };
assert_eq!(
&state(&s),
want,
"{} cut at {cut} of {from}..{to}",
path.display()
);
cuts += 1;
if cut % 61 == 0 || cut == from + 1 || cut == to {
let body = json!({ "repo": bob, "collection": "a.b.c", "rkey": "after", "record": { "n": 9 } });
call(&s, "com.atproto.repo.putRecord", Some(token), body)
.await
.unwrap();
let now = state(&s);
drop(s);
assert_eq!(
state(&open(&work, &plc)),
now,
"{} cut at {cut}",
path.display()
);
}
}
}
assert!(cuts > 500, "{cuts}");
let _ = std::fs::remove_dir_all(&dir);
let _ = std::fs::remove_dir_all(&work);
}
/// Cut `accounts.log` at every byte of each frame a change to sessions or
/// app passwords wrote (and flip a byte in it): recovery must give the
/// state before that change or after it. Each kind of entry is cut: the
@@ -1663,8 +1890,10 @@ mod tests {
)
.await
.unwrap();
assert_eq!(state(&open(&work, &plc)), state(&s));
assert_ne!(state(&s).1[&alice], steps.last().unwrap().state.1[&alice]);
let now = state(&s);
drop(s);
assert_eq!(state(&open(&work, &plc)), now);
assert_ne!(now.1[&alice], steps.last().unwrap().state.1[&alice]);
let _ = std::fs::remove_dir_all(&dir);
let _ = std::fs::remove_dir_all(&work);
}
@@ -1874,7 +2103,9 @@ mod tests {
)
.await
.unwrap();
assert_eq!(state(&open(&work, &plc)), state(&s));
let now = state(&s);
drop(s);
assert_eq!(state(&open(&work, &plc)), now);
let _ = std::fs::remove_dir_all(&dir);
let _ = std::fs::remove_dir_all(&sink);
let _ = std::fs::remove_dir_all(&work);
@@ -2074,7 +2305,9 @@ mod tests {
)
.await
.unwrap();
assert_eq!(state(&open(&work, &plc)), state(&s));
let now = state(&s);
drop(s);
assert_eq!(state(&open(&work, &plc)), now);
let _ = std::fs::remove_dir_all(&dir);
let _ = std::fs::remove_dir_all(&sink);
let _ = std::fs::remove_dir_all(&work);
@@ -2677,8 +2910,10 @@ mod tests {
)
.await
.unwrap();
assert_eq!(spaces(&open(&work, &plc)), spaces(&s));
assert_ne!(spaces(&s), steps.last().unwrap().1);
let now = spaces(&s);
drop(s);
assert_eq!(spaces(&open(&work, &plc)), now);
assert_ne!(now, steps.last().unwrap().1);
let _ = std::fs::remove_dir_all(&dir);
let _ = std::fs::remove_dir_all(&work);
}
@@ -2760,9 +2995,10 @@ mod tests {
let s = open(&work, &plc);
assert_eq!(&kept(&s), &last.1);
notify::keep(&s, &alice, &notify::frames_of_each_kind(&q, &m)[0]);
assert_eq!(kept(&open(&work, &plc)), kept(&s));
assert_ne!(kept(&s), last.1);
let now = kept(&s);
drop(s);
assert_eq!(kept(&open(&work, &plc)), now);
assert_ne!(now, last.1);
// A malformed entry of each kind is refused with a reason.
let space = json!(q);
for bad in [
@@ -3139,8 +3375,9 @@ mod tests {
assert!(kem.is_some());
assert_eq!(kem, after.state.0[bob.as_str()].2);
if cut % 61 == 0 {
let again = open(&work, &plc);
assert_eq!(state(&again), state(&s));
let now = state(&s);
drop(s);
assert_eq!(state(&open(&work, &plc)), now);
}
}
let _ = std::fs::remove_dir_all(&dir);
@@ -3288,7 +3525,9 @@ mod tests {
assert_eq!(lost.len(), 1, "{got:?}");
assert_eq!(*s.events.subscribe().borrow(), n + 1);
let first = state(&s);
assert_eq!(state(&open(&work, &plc)), first);
drop(s);
let s = open(&work, &plc);
assert_eq!(state(&s), first);
// A new event follows on, and every restart after numbers them alike.
let body = json!({ "repo": a, "collection": "a.b.c", "rkey": "new", "record": { "n": 1 } });
call(&s, "com.atproto.repo.putRecord", Some(ta), body)
@@ -4252,9 +4491,9 @@ mod tests {
let put = |did: &str, rkey: &str, n: usize| json!({ "repo": did, "collection": "a.b.c", "rkey": rkey, "record": { "t": "x".repeat(n) } });
call(&s, "com.atproto.repo.putRecord", Some(&token), put(&did, "a", 10)).await.unwrap();
let log = dir.join(repo_log(Path::new(""), &did));
let len = std::fs::metadata(&log).unwrap().len();
let len = log_bytes(&log).len() as u64;
let before = state(&s);
let largest = files(&dir).values().map(|b| b.len() as u64).max().unwrap();
let largest = files_whole(&dir).values().map(|b| b.len() as u64).max().unwrap();
set_limit(Resource::Fsize, Some(largest.max(len) + 8000));
assert_eq!(call(&s, "com.atproto.repo.putRecord", Some(&token), put(&did, "b", 40_000)).await, Err("InternalServerError".into()));
assert_eq!(std::fs::metadata(&log).unwrap().len(), len);
crates/pds-server/src/store.rs+21−4
@@ -11,7 +11,22 @@
//! While a checkpoint is written, `<checkpoint>.tmp` is beside it.
//! Generations are decimal from 0. A log is frames (`pds_store`), each one
//! write's whole effect, and may end with a **seal**, `[{"t":"seal"}]`: the
//! log is closed, the next generation follows.
//! log is closed, the next generation follows. The file of the log written
//! to may be longer than its frames, by **room**: zeros the next frames are
//! written over, so that their syncs find the file no longer than it was
//! (`pds_store`). A log's bytes, wherever they are counted, are its
//! frames': room is no part of them. It is made only in a log written to
//! again while it is open, never past what the log may grow to before it
//! is compacted, and given back when the log is sealed, when its file is
//! closed to keep within `log::OPEN_LOGS`, and when it is opened: so the
//! logs that hold room are the service log and the accounts' logs that
//! are open, `pds_store::AHEAD` each at most, however many accounts there
//! are; and a log that was open when the server stopped, or when its
//! account's state left the cache, keeps what it had until it is loaded
//! again. A log's file is locked for as long as it is held open to write
//! to (`pds_store`): a second handle on it, in this process or another,
//! is an error that names the file, never a second writer. What reads a
//! log takes no lock.
//!
//! **Checkpoints.** The checkpoint of generation `g` is the state as of the
//! start of log `g`: every log before folded. An account's is a sorted
@@ -38,8 +53,9 @@
//! `max(min(checkpoint, SERVICE_CAP), log_floor)`, or its generation began
//! more than twice the backfill window ago (`policy`, `service_policy`):
//!
//! 1. under the log's lock, the seal appended to log `g` and log `g + 1`
//! made, empty; nothing synced, nothing read, nothing folded there;
//! 1. under the log's lock, log `g`'s room given back, its seal written,
//! and log `g + 1` made, empty; nothing synced, nothing read, nothing
//! folded there;
//! 2. outside it, log `g` and the directory synced: no frame of log `g + 1`
//! is answered before;
//! 3. the checkpoint before and the sealed logs read from disk and folded
@@ -59,7 +75,8 @@
//! `c`), logs before `c` deleted, the rest replayed in order and none
//! missing; a log but the last not ended by its seal, or one ending in part
//! of a frame, is cut there and the later ones deleted (none of that was
//! answered); then appends go to the last log, or a new one after a seal.
//! answered); room a kill left in a log is cut off it; then appends go to
//! the last log, or a new one after a seal.
//! So a kill at any point leaves a whole state: before the rename, the old
//! checkpoint and every sealed log; after, the new one, and the logs it
//! covers deleted then if not already. The service log starts so as the
crates/pds-store/src/generations.rs+369−53
422 lines changed: not loaded until asked for.
crates/pds-store/src/lib.rs+664−43
707 lines changed: not loaded until asked for.
crates/pds-store/Cargo.toml+1−0
@@ -7,3 +7,4 @@ publish.workspace = true
[dependencies]
serde_json.workspace = true
sha2.workspace = true
rustix.workspace = true
Cargo.lock+1−0
@@ -1403,6 +1403,7 @@ dependencies = [
name = "pds-store"
version = "0.1.0"
dependencies = [
"rustix",
"serde_json",
"sha2 0.10.9",
]