aboutsummaryrefslogtreecommitdiff
path: root/weed/command/scaffold.go
diff options
context:
space:
mode:
authorPatrick Schmidt <patrick.schmidt@innogames.com>2021-03-05 12:50:58 +0100
committerPatrick Schmidt <patrick.schmidt@innogames.com>2021-03-05 12:50:58 +0100
commit7413d59750686bc3fdc50ff7a687adfd002e1b63 (patch)
treecb657fa21b6a5f3968205ec37574fb35472c71fa /weed/command/scaffold.go
parent400de380f48c44c7700fdf7e8f247bf856662c10 (diff)
downloadseaweedfs-7413d59750686bc3fdc50ff7a687adfd002e1b63.tar.xz
seaweedfs-7413d59750686bc3fdc50ff7a687adfd002e1b63.zip
Fix EC shard count logic
This fixes the calculation of the amount of EC shards a node holds. Previously a global counter was increased, but also used inside the loop to apply disk usage deltas. This led to wrong absolute numbers. The fix is to apply only deltas of single EC shards per iteration.
Diffstat (limited to 'weed/command/scaffold.go')
0 files changed, 0 insertions, 0 deletions