Browse Source

fix random volume ids in master.html (#7655)

pull/7663/head
Trim21 2 days ago
committed by GitHub
parent
commit
0a0eb21b86
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 3
      weed/topology/data_node.go
  2. 3
      weed/topology/disk.go

3
weed/topology/data_node.go

@ -2,6 +2,7 @@ package topology
import (
"fmt"
"slices"
"sync/atomic"
"github.com/seaweedfs/seaweedfs/weed/glog"
@ -289,6 +290,8 @@ func (dn *DataNode) GetVolumeIds() string {
ids = append(ids, int(k))
}
slices.Sort(ids)
return util.HumanReadableIntsMax(100, ids...)
}

3
weed/topology/disk.go

@ -2,6 +2,7 @@ package topology
import (
"fmt"
"slices"
"sync"
"sync/atomic"
@ -298,5 +299,7 @@ func (d *Disk) GetVolumeIds() string {
ids = append(ids, int(k))
}
slices.Sort(ids)
return util.HumanReadableIntsMax(100, ids...)
}
Loading…
Cancel
Save