From 5738246467eaab645185ff1185e82fb014be28f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erik=20Bj=C3=A4reholt?= Date: Mon, 23 Sep 2024 12:22:46 +0200 Subject: [PATCH] fix(sync): remove bug-causing workaround for spurious small db files (fixes #466) (#492) --- aw-sync/src/sync_wrapper.rs | 7 ------- 1 file changed, 7 deletions(-) diff --git a/aw-sync/src/sync_wrapper.rs b/aw-sync/src/sync_wrapper.rs index b83f90bf..73dbe953 100644 --- a/aw-sync/src/sync_wrapper.rs +++ b/aw-sync/src/sync_wrapper.rs @@ -41,13 +41,6 @@ pub fn pull(host: &str, client: &AwClient) -> Result<(), Box> { }) .collect::>(); - // filter out dbs that are smaller than 50kB (workaround for trying to sync empty database - // files that are spuriously created somewhere) - let dbs = dbs - .into_iter() - .filter(|entry| entry.metadata().map(|m| m.len() > 50_000).unwrap_or(false)) - .collect::>(); - // if more than one db, warn and use the largest one if dbs.len() > 1 { warn!(