diff options
| author | Chris Lu <chris.lu@gmail.com> | 2020-10-24 02:05:05 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2020-10-24 02:05:05 -0700 |
| commit | 6c4fb243a7d40b746de0a9d676f1b65aef9dd17a (patch) | |
| tree | 48d5ebb37bb485858e515606eeffebdd9d480bad /weed | |
| parent | e50eae9ad84bedddbdd9d11fb4d1155714e90c16 (diff) | |
| download | seaweedfs-6c4fb243a7d40b746de0a9d676f1b65aef9dd17a.tar.xz seaweedfs-6c4fb243a7d40b746de0a9d676f1b65aef9dd17a.zip | |
remove limits to concurrent writers
Diffstat (limited to 'weed')
| -rw-r--r-- | weed/filesys/dirty_page.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/filesys/dirty_page.go b/weed/filesys/dirty_page.go index a7e3decdc..bb6ebd55e 100644 --- a/weed/filesys/dirty_page.go +++ b/weed/filesys/dirty_page.go @@ -109,7 +109,7 @@ func (pages *ContinuousDirtyPages) saveToStorage(reader io.Reader, offset int64, mtime := time.Now().UnixNano() pages.writeWaitGroup.Add(1) - concurrentWriters.Execute(func() { + go func() { defer pages.writeWaitGroup.Done() dir, _ := pages.f.fullpath().DirAndName() @@ -125,7 +125,7 @@ func (pages *ContinuousDirtyPages) saveToStorage(reader io.Reader, offset int64, pages.collection, pages.replication = collection, replication pages.f.addChunks([]*filer_pb.FileChunk{chunk}) glog.V(3).Infof("%s saveToStorage [%d,%d)", pages.f.fullpath(), offset, offset+size) - }) + }() } func max(x, y int64) int64 { |
