File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -1564,7 +1564,7 @@ func (inode *Inode) SendUpload() bool {
1564
1564
// Pick part(s) to flush
1565
1565
initiated := false
1566
1566
lastPart := uint64 (0 )
1567
- flushInode := inode .fileHandles == 0 || inode .forceFlush || atomic . LoadInt32 ( & inode . fs . wantFree ) > 0
1567
+ flushInode := inode .fileHandles == 0 || inode .forceFlush
1568
1568
partDirty := false
1569
1569
partLocked := false
1570
1570
partEvicted := false
@@ -1641,8 +1641,7 @@ func (inode *Inode) SendUpload() bool {
1641
1641
return true
1642
1642
}
1643
1643
}
1644
- if canComplete && (inode .fileHandles == 0 || inode .forceFlush ||
1645
- atomic .LoadInt32 (& inode .fs .wantFree ) > 0 ) {
1644
+ if canComplete && flushInode {
1646
1645
// Complete the multipart upload
1647
1646
inode .IsFlushing += inode .fs .flags .MaxParallelParts
1648
1647
atomic .AddInt64 (& inode .fs .activeFlushers , 1 )
You can’t perform that action at this time.
0 commit comments