mirror of
https://github.com/rclone/rclone.git
synced 2025-06-21 04:08:02 +02:00
vfs: remove items from writeback when dirty, don't just cancel the upload
This stops open items continually trying to be uploaded
This commit is contained in:
parent
3eded3c4ac
commit
d273a9d82d
@ -369,7 +369,9 @@ func (item *Item) _dirty() {
|
|||||||
item.metaDirty = true
|
item.metaDirty = true
|
||||||
if !item.modified {
|
if !item.modified {
|
||||||
item.modified = true
|
item.modified = true
|
||||||
go item.c.writeback.cancelUpload(item)
|
item.mu.Unlock()
|
||||||
|
item.c.writeback.remove(item)
|
||||||
|
item.mu.Lock()
|
||||||
}
|
}
|
||||||
if !item.info.Dirty {
|
if !item.info.Dirty {
|
||||||
item.info.Dirty = true
|
item.info.Dirty = true
|
||||||
|
Loading…
x
Reference in New Issue
Block a user