mirror of
https://github.com/octoleo/syncthing.git
synced 2024-12-23 03:18:59 +00: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