fix: migrate users properly from older releases to newer (#12333)

This commit is contained in:
Harshavardhana
2021-05-19 19:25:44 -07:00
committed by GitHub
parent cfa94cc35c
commit 6060b755c6
3 changed files with 15 additions and 31 deletions

View File

@@ -408,6 +408,9 @@ func (z *erasureServerPools) StorageInfo(ctx context.Context) (StorageInfo, []er
}
func (z *erasureServerPools) NSScanner(ctx context.Context, bf *bloomFilter, updates chan<- madmin.DataUsageInfo) error {
// Updates must be closed before we return.
defer close(updates)
ctx, cancel := context.WithCancel(ctx)
defer cancel()