Trim21
2 days ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with
6 additions and
0 deletions
-
weed/topology/data_node.go
-
weed/topology/disk.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...) |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@ -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...) |
|
|
|
} |