diff options
author | metamuffin <metamuffin@disroot.org> | 2025-02-04 16:28:36 +0100 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2025-02-04 16:28:36 +0100 |
commit | 3d918d746c7d1205418aafaa2fd26b29e85c02c8 (patch) | |
tree | f0dcea0a80c3097b07965e5a23deaeb238f00df4 /base/src/database.rs | |
parent | 43fb187b6fc0d8de7a7e8604348a17434d21a30c (diff) | |
download | jellything-3d918d746c7d1205418aafaa2fd26b29e85c02c8.tar jellything-3d918d746c7d1205418aafaa2fd26b29e85c02c8.tar.bz2 jellything-3d918d746c7d1205418aafaa2fd26b29e85c02c8.tar.zst |
merge admin "clear" and "full import" options
Diffstat (limited to 'base/src/database.rs')
-rw-r--r-- | base/src/database.rs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/base/src/database.rs b/base/src/database.rs index 90e42b9..2eecbf6 100644 --- a/base/src/database.rs +++ b/base/src/database.rs @@ -107,10 +107,17 @@ impl Database { let mut t_node = txn.open_table(T_NODE)?; let mut t_node_children = txn.open_table(T_NODE_CHILDREN)?; let mut t_node_external_id = txn.open_table(T_NODE_EXTERNAL_ID)?; + let mut t_import_file_mtime = txn.open_table(T_IMPORT_FILE_MTIME)?; t_node.retain(|_, _| false)?; t_node_children.retain(|_, _| false)?; t_node_external_id.retain(|_, _| false)?; - drop((t_node, t_node_children, t_node_external_id)); + t_import_file_mtime.retain(|_, _| false)?; + drop(( + t_node, + t_node_children, + t_node_external_id, + t_import_file_mtime, + )); txn.commit()?; Ok(()) } |