make sure renames generated during sync don't get immediately removed
This commit is contained in:
parent
d394aed5fd
commit
1ff6cbc54d
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user