summaryrefslogtreecommitdiff
path: root/src/bin/benchmark-indexedstore.rs
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2021-01-09 16:52:35 +0200
committerLars Wirzenius <liw@liw.fi>2021-01-10 18:17:27 +0200
commite5f68184bfe91f6874fe8c2344dbd5fa613d6bee (patch)
tree9860e2bc6c827bf69d1c324303e01c86efd94e65 /src/bin/benchmark-indexedstore.rs
parent7ff248232a414b907b3abe464cc015e5ea48c236 (diff)
downloadobnam2-e5f68184bfe91f6874fe8c2344dbd5fa613d6bee.tar.gz
feat! use SQLite db for chunk index on server
This speeds startup a lot. However, the backup repository needs to be re-created from scratch and internal APIs have change in incompatible ways.
Diffstat (limited to 'src/bin/benchmark-indexedstore.rs')
-rw-r--r--src/bin/benchmark-indexedstore.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/benchmark-indexedstore.rs b/src/bin/benchmark-indexedstore.rs
index a4191ac..3ee4c38 100644
--- a/src/bin/benchmark-indexedstore.rs
+++ b/src/bin/benchmark-indexedstore.rs
@@ -19,7 +19,7 @@ fn main() -> anyhow::Result<()> {
let opt = Opt::from_args();
let gen = ChunkGenerator::new(opt.num);
- let mut store = IndexedStore::new(&opt.chunks);
+ let mut store = IndexedStore::new(&opt.chunks)?;
for (_, _, meta, chunk) in gen {
store.save(&meta, &chunk)?;
}