summaryrefslogtreecommitdiff
path: root/src/store.rs
AgeCommit message (Collapse)AuthorFilesLines
2022-11-12fix: unnecessary borrows, other things found by clippyLars Wirzenius1-6/+6
Sponsored-by: author
2021-12-31docs: add documentation comments to crateLars Wirzenius1-0/+2
Also, make it an error for a public symbol to not be documented. Sponsored-by: author
2021-07-21Replace StoreResult with plain ResultAlexander Batischev1-6/+3
2021-05-29refactor: make metadata be part of datachunkLars Wirzenius1-5/+7
This makes it harder to lose the metadata for a chunk, or to use unrelated metadata and chunk. Also, soon I will refactor things for encrypting chunks, which will need metadata embedded in the encrypted chunk. Sponsored-by: author
2021-02-04refactor: have per-module error enumsLars Wirzenius1-8/+10
This means that a function that parses step bindings can't return an error that the document is missing a title. Such an error return would be nonsensical, and we use the Rust type system to prevent it, at a small cost of being a bit verbose. Additional benefit is that the library portion of Obnam doesn't return anyhow::Result values anymore.
2021-01-10feat! use SQLite db for chunk index on serverLars Wirzenius1-29/+2
This speeds startup a lot. However, the backup repository needs to be re-created from scratch and internal APIs have change in incompatible ways.
2020-12-23refactor: use a struct instead of a tupleLars Wirzenius1-2/+22
It seems this is more idiomatic in Rust.
2020-11-25perf: store chunks on disk in a 3-level directory treeLars Wirzenius1-9/+33
git does the same thing. This improves the wall clock time to run benchmark-store with a million chunks from a 40.36 seconds to 18.70, on a system with NVMe and ext4.
2020-10-14refactor: rename Chunk to DataChunkLars Wirzenius1-4/+4
2020-10-14refactor: move chunk metadata out of chunk structLars Wirzenius1-4/+4
2020-09-19feat: search, delete chunks on chunk serverLars Wirzenius1-0/+7
Also heavily refactor the now-long scenario by splitting out a happy path and some unhappy paths.
2020-09-17feat: store chunks persistentlyLars Wirzenius1-0/+47