aboutsummaryrefslogtreecommitdiff
path: root/weed/filesys/wfs.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@uber.com>2021-04-02 02:21:38 -0700
committerChris Lu <chris.lu@uber.com>2021-04-02 02:21:38 -0700
commitbdf2ddddfdccbc3d48e763457a779c8cc9ece6ac (patch)
tree3d776b98e42f977b5113fd1db685cfedf4c273d1 /weed/filesys/wfs.go
parent67e019d54b2f7bde826584c1b752305ec1702ca4 (diff)
downloadseaweedfs-bdf2ddddfdccbc3d48e763457a779c8cc9ece6ac.tar.xz
seaweedfs-bdf2ddddfdccbc3d48e763457a779c8cc9ece6ac.zip
revert to same implementation as before
This reverts commit 7e8edc3c4adaf1251f5c773cbeaf3a868269f97a.
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 f0ac6d80d..c6d9080a1 100644
--- a/weed/filesys/wfs.go
+++ b/weed/filesys/wfs.go
@@ -77,7 +77,7 @@ type WFS struct {
signature int32
// throttle writers
- concurrentWriters *util.LimitedOutOfOrderProcessor
+ concurrentWriters *util.LimitedConcurrentExecutor
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.NewLimitedOutOfOrderProcessor(int32(wfs.option.ConcurrentWriters))
+ wfs.concurrentWriters = util.NewLimitedConcurrentExecutor(wfs.option.ConcurrentWriters)
}
return wfs