Skip to content
This repository has been archived by the owner on Jun 27, 2023. It is now read-only.

Commit

Permalink
fix size change sign
Browse files Browse the repository at this point in the history
  • Loading branch information
schomatis committed Jun 29, 2021
1 parent 3d7b999 commit 3301178
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions io/directory.go
Original file line number Diff line number Diff line change
Expand Up @@ -577,8 +577,8 @@ func (d *UpgradeableDirectory) RemoveChild(ctx context.Context, name string) err
return nil
}

if HAMTShardingSize == 0 && // Option disabled.
hamtDir.sizeChange < 0 { // We haven't reduced the HAMT net size.
if HAMTShardingSize == 0 || // Option disabled.
hamtDir.sizeChange >= 0 { // We haven't reduced the HAMT net size.
return nil
}

Expand Down

0 comments on commit 3301178

Please sign in to comment.