mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-10-18 20:18:27 +02:00
change volume id type to topology.VolumeId
This commit is contained in:
1 parent
0121f35c12
commit
31e4dbfe38
6 files changed
+17
-15
No files matched your search
@@ -64,7 +64,7 @@ func (s *Store) Status() *[]*topology.VolumeInfo {
|
||||
stats := new([]*topology.VolumeInfo)
|
||||
for k, v := range s.volumes {
|
||||
s := new(topology.VolumeInfo)
|
||||
s.Id, s.Size = uint32(k), v.Size()
|
||||
s.Id, s.Size = topology.VolumeId(k), v.Size()
|
||||
*stats = append(*stats, s)
|
||||
}
|
||||
return stats
|
||||
@@ -73,7 +73,7 @@ func (s *Store) Join(mserver string) {
|
||||
stats := new([]*topology.VolumeInfo)
|
||||
for k, v := range s.volumes {
|
||||
s := new(topology.VolumeInfo)
|
||||
s.Id, s.Size = uint32(k), v.Size()
|
||||
s.Id, s.Size = topology.VolumeId(k), v.Size()
|
||||
*stats = append(*stats, s)
|
||||
}
|
||||
bytes, _ := json.Marshal(stats)
|
||||
|
||||
Reference in new issue
Block a user