mirror of
https://github.com/octoleo/syncthing.git
synced 2024-12-23 11:28: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 {
|
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 b.flush()
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
|
Loading…
Reference in New Issue
Block a user