mirror of
https://github.com/syncthing/syncthing.git
synced 2024-11-16 18:41:59 -07:00
lib/model: Clarify fileInfoBatch.flushIfFull criteria
This commit is contained in:
parent
bd37f6da17
commit
9da3273eb8
@ -2867,7 +2867,7 @@ func (b *fileInfoBatch) append(f protocol.FileInfo) {
|
||||
}
|
||||
|
||||
func (b *fileInfoBatch) flushIfFull() error {
|
||||
if len(b.infos) == maxBatchSizeFiles || b.size > maxBatchSizeBytes {
|
||||
if len(b.infos) >= maxBatchSizeFiles || b.size >= maxBatchSizeBytes {
|
||||
return b.flush()
|
||||
}
|
||||
return nil
|
||||
|
Loading…
Reference in New Issue
Block a user