lib/model: Use semaphore to limit concurrent folder writes (fixes #6541) (#6573)

This commit is contained in:
Jakob Borg
2020-04-27 00:13:18 +02:00
committed by GitHub
parent 037934ec74
commit 6c73617974
3 changed files with 17 additions and 5 deletions
+1
View File
@@ -57,6 +57,7 @@ type FolderConfiguration struct {
MarkerName string `xml:"markerName" json:"markerName"`
CopyOwnershipFromParent bool `xml:"copyOwnershipFromParent" json:"copyOwnershipFromParent"`
RawModTimeWindowS int `xml:"modTimeWindowS" json:"modTimeWindowS"`
MaxConcurrentWrites int `xml:"maxConcurrentWrites" json:"maxConcurrentWrites" default:"2"`
cachedFilesystem fs.Filesystem
cachedModTimeWindow time.Duration