aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2023-12-26 22:47:11 +0100
committermetamuffin <metamuffin@disroot.org>2023-12-26 22:47:11 +0100
commit0e0d05a59b3db59d065ade4a08792125b891dc1a (patch)
tree08597788231ae2fa88d8375938e8f304643da737
parentecee928f22ac5c0bc9dc2cbe775ebce3e4b808e6 (diff)
downloadjellything-0e0d05a59b3db59d065ade4a08792125b891dc1a.tar
jellything-0e0d05a59b3db59d065ade4a08792125b891dc1a.tar.bz2
jellything-0e0d05a59b3db59d065ade4a08792125b891dc1a.tar.zst
remove old nodes during import
-rw-r--r--import/src/lib.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/import/src/lib.rs b/import/src/lib.rs
index ff687d7..4da1707 100644
--- a/import/src/lib.rs
+++ b/import/src/lib.rs
@@ -50,6 +50,8 @@ pub async fn import(db: &Database, fed: &Federation) -> anyhow::Result<()> {
import_path(CONF.library_path.clone(), vec![], db, fed)
.await
.context("indexing")?;
+ info!("removing old nodes...");
+ db.node.clear()?;
info!("merging nodes...");
merge_nodes(db).context("merging nodes")?;
info!("generating paths...");