aboutsummaryrefslogtreecommitdiff
path: root/weed/filesys/wfs.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@uber.com>2021-04-02 01:10:24 -0700
committerChris Lu <chris.lu@uber.com>2021-04-02 01:10:24 -0700
commit7e8edc3c4adaf1251f5c773cbeaf3a868269f97a (patch)
treeba87171aee996af75425171db7fd60cae041a387 /weed/filesys/wfs.go
parentcc0df36a9e767b27e313885a79119e6b14c3cbad (diff)
downloadseaweedfs-7e8edc3c4adaf1251f5c773cbeaf3a868269f97a.tar.xz
seaweedfs-7e8edc3c4adaf1251f5c773cbeaf3a868269f97a.zip
refactoring
Diffstat (limited to 'weed/filesys/wfs.go')
-rw-r--r--weed/filesys/wfs.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/filesys/wfs.go b/weed/filesys/wfs.go
index c6d9080a1..f0ac6d80d 100644
--- a/weed/filesys/wfs.go
+++ b/weed/filesys/wfs.go
@@ -77,7 +77,7 @@ type WFS struct {
signature int32
// throttle writers
- concurrentWriters *util.LimitedConcurrentExecutor
+ concurrentWriters *util.LimitedOutOfOrderProcessor
Server *fs.Server
}
type statsCache struct {
@@ -135,7 +135,7 @@ func NewSeaweedFileSystem(option *Option) *WFS {
wfs.fsNodeCache = newFsCache(wfs.root)
if wfs.option.ConcurrentWriters > 0 {
- wfs.concurrentWriters = util.NewLimitedConcurrentExecutor(wfs.option.ConcurrentWriters)
+ wfs.concurrentWriters = util.NewLimitedOutOfOrderProcessor(int32(wfs.option.ConcurrentWriters))
}
return wfs