lib/storage: do not report about the need of free disk space if parts cannot be merged due to too big write amplification

This commit is contained in:
Aliaksandr Valialkin 2020-11-03 15:31:56 +02:00
parent 887a3c317f
commit c0bd208c77

View File

@ -1381,7 +1381,7 @@ func appendPartsToMerge(dst, src []*partWrapper, maxPartsToMerge int, maxRows ui
} }
if maxM < minM { if maxM < minM {
// There is no sense in merging parts with too small m. // There is no sense in merging parts with too small m.
return dst, needFreeSpace return dst, false
} }
return append(dst, pws...), needFreeSpace return append(dst, pws...), needFreeSpace
} }