mirror of
https://github.com/minio/minio.git
synced 2025-04-29 06:08:00 -04: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
|
// getDataDirs will return all data directories in the metadata
|
||||||
// as well as all version ids used for inline data.
|
// as well as all version ids used for inline data.
|
||||||
func (x *xlMetaV2) getDataDirs() ([]string, error) {
|
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 {
|
for i, ver := range x.versions {
|
||||||
if ver.header.Type == DeleteType {
|
if ver.header.Type == DeleteType {
|
||||||
continue
|
continue
|
||||||
|
Loading…
x
Reference in New Issue
Block a user