We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c44eb8f commit b0fcce8Copy full SHA for b0fcce8
src/database/queries/mod.rs
@@ -56,7 +56,7 @@ pub fn delete_all_entries(conn: &Connection) -> Result<()> {
56
fn vacuum(conn: &Connection) -> Result<()> {
57
tracing::debug!("vacuuming DB");
58
59
- let estimated_free = get_estimated_free_space(conn)?;
+ let estimated_free = get_estimated_free_space(conn).unwrap_or(1_000_000);
60
if estimated_free < 1_000_000 {
61
tracing::debug!(
62
"estimated freed space ({estimated_free}) under the threshold - skipping VACUUM"
0 commit comments