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

Commit 3301178

Browse files
committed
fix size change sign
1 parent 3d7b999 commit 3301178

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

io/directory.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -577,8 +577,8 @@ func (d *UpgradeableDirectory) RemoveChild(ctx context.Context, name string) err
577577
return nil
578578
}
579579

580-
if HAMTShardingSize == 0 && // Option disabled.
581-
hamtDir.sizeChange < 0 { // We haven't reduced the HAMT net size.
580+
if HAMTShardingSize == 0 || // Option disabled.
581+
hamtDir.sizeChange >= 0 { // We haven't reduced the HAMT net size.
582582
return nil
583583
}
584584

0 commit comments

Comments
 (0)