make sure renames generated during sync don't get immediately removed

This commit is contained in:
Damien Elmes 2020-02-11 19:27:53 +10:00
parent d394aed5fd
commit 1ff6cbc54d

View File

@ -287,9 +287,9 @@ where
// then update the DB // then update the DB
let dirmod = mtime_as_i64(&self.mgr.media_folder)?; let dirmod = mtime_as_i64(&self.mgr.media_folder)?;
self.ctx.transact(|ctx| { self.ctx.transact(|ctx| {
record_clean(ctx, &to_remove_pending)?;
record_removals(ctx, &to_delete)?; record_removals(ctx, &to_delete)?;
record_additions(ctx, downloaded)?; record_additions(ctx, downloaded)?;
record_clean(ctx, &to_remove_pending)?;
// update usn // update usn
meta.last_sync_usn = last_usn; meta.last_sync_usn = last_usn;