diff options
| author | chrislu <chris.lu@gmail.com> | 2022-08-10 22:27:13 -0700 |
|---|---|---|
| committer | chrislu <chris.lu@gmail.com> | 2022-08-10 22:27:13 -0700 |
| commit | ae93c966d9d20e299a24c300721f65065d77c8ea (patch) | |
| tree | 9448721b42923252129aaa7f66dfcdc725081f6c /weed/util/limiter.go | |
| parent | 670cb759f82815461bc854569542582da51a6199 (diff) | |
| download | seaweedfs-ae93c966d9d20e299a24c300721f65065d77c8ea.tar.xz seaweedfs-ae93c966d9d20e299a24c300721f65065d77c8ea.zip | |
ensure memory is aligned
fix https://github.com/seaweedfs/seaweedfs/issues/3427
Diffstat (limited to 'weed/util/limiter.go')
| -rw-r--r-- | weed/util/limiter.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/util/limiter.go b/weed/util/limiter.go index 2debaaa85..9d63c12a1 100644 --- a/weed/util/limiter.go +++ b/weed/util/limiter.go @@ -50,10 +50,10 @@ func (c *LimitedConcurrentExecutor) Execute(job func()) { type OperationRequest func() type LimitedOutOfOrderProcessor struct { - processorSlots uint32 - processors []chan OperationRequest processorLimit int32 processorLimitCond *sync.Cond + processorSlots uint32 + processors []chan OperationRequest currentProcessor int32 } |
