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
1 changed files with 3 additions and 1 deletions
|
@ -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…
Reference in a new issue