fix random volume ids in master.html (#7655)
This commit is contained in:
@@ -2,6 +2,7 @@ package topology
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"slices"
|
||||||
"sync/atomic"
|
"sync/atomic"
|
||||||
|
|
||||||
"github.com/seaweedfs/seaweedfs/weed/glog"
|
"github.com/seaweedfs/seaweedfs/weed/glog"
|
||||||
@@ -289,6 +290,8 @@ func (dn *DataNode) GetVolumeIds() string {
|
|||||||
ids = append(ids, int(k))
|
ids = append(ids, int(k))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
slices.Sort(ids)
|
||||||
|
|
||||||
return util.HumanReadableIntsMax(100, ids...)
|
return util.HumanReadableIntsMax(100, ids...)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ package topology
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"slices"
|
||||||
"sync"
|
"sync"
|
||||||
"sync/atomic"
|
"sync/atomic"
|
||||||
|
|
||||||
@@ -298,5 +299,7 @@ func (d *Disk) GetVolumeIds() string {
|
|||||||
ids = append(ids, int(k))
|
ids = append(ids, int(k))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
slices.Sort(ids)
|
||||||
|
|
||||||
return util.HumanReadableIntsMax(100, ids...)
|
return util.HumanReadableIntsMax(100, ids...)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user