diff options
| author | Chris Lu <chris.lu@gmail.com> | 2019-06-04 01:49:51 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2019-06-04 01:49:51 -0700 |
| commit | 06133ae98fe3176b69d3a2a17a6793c94146a2c8 (patch) | |
| tree | 7718b12142c4e7a695f429f86af506f120f11257 /weed/shell/command_ec_balance.go | |
| parent | 6cea23d091120f53b7a6b2dd657add0954d93739 (diff) | |
| download | seaweedfs-06133ae98fe3176b69d3a2a17a6793c94146a2c8.tar.xz seaweedfs-06133ae98fe3176b69d3a2a17a6793c94146a2c8.zip | |
correct count for free ec slots, avoid removing generated shards
Diffstat (limited to 'weed/shell/command_ec_balance.go')
| -rw-r--r-- | weed/shell/command_ec_balance.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/weed/shell/command_ec_balance.go b/weed/shell/command_ec_balance.go index 414f0ec4d..f3f4fff45 100644 --- a/weed/shell/command_ec_balance.go +++ b/weed/shell/command_ec_balance.go @@ -256,6 +256,7 @@ func pickOneEcNodeAndMoveOneShard(ctx context.Context, commandEnv *commandEnv, a } destEcNode.freeEcSlot-- + existingLocation.freeEcSlot++ return nil } |
