mirror of
https://github.com/minio/minio.git
synced 2025-02-03 01:46:00 -05:00
Remove leading zero strings in return value of (*xlMetaV2)getDataDirs() (#19567)
remove leading zero strings in return value of getDataDirs()
This commit is contained in:
parent
b5a09ff96b
commit
5ea5ab162b
@ -1245,7 +1245,7 @@ func (x *xlMetaV2) setIdx(idx int, ver xlMetaV2Version) (err error) {
|
||||
// getDataDirs will return all data directories in the metadata
|
||||
// as well as all version ids used for inline data.
|
||||
func (x *xlMetaV2) getDataDirs() ([]string, error) {
|
||||
dds := make([]string, len(x.versions)*2)
|
||||
dds := make([]string, 0, len(x.versions)*2)
|
||||
for i, ver := range x.versions {
|
||||
if ver.header.Type == DeleteType {
|
||||
continue
|
||||
|
Loading…
x
Reference in New Issue
Block a user