mirror of
https://github.com/pgsty/minio.git
synced 2026-07-24 22:46:16 +03:00
chore(all): replace map key deletion loop with clear() (#21082)
This commit is contained in:
+1
-3
@@ -3373,9 +3373,7 @@ func (s *xlStorage) CleanAbandonedData(ctx context.Context, volume string, path
|
||||
}
|
||||
|
||||
// Clear and repopulate
|
||||
for k := range foundDirs {
|
||||
delete(foundDirs, k)
|
||||
}
|
||||
clear(foundDirs)
|
||||
|
||||
// Populate into map
|
||||
for _, k := range dirs {
|
||||
|
||||
Reference in New Issue
Block a user