mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-07-31 20:07:44 +08:00
Merge pull request #1383 from robin1900/master
fix dn.volumes Iterate when write issue
This commit is contained in:
commit
6360824dd2
@ -199,6 +199,8 @@ func (dn *DataNode) ToDataNodeInfo() *master_pb.DataNodeInfo {
|
||||
|
||||
// GetVolumeIds returns the human readable volume ids limited to count of max 100.
|
||||
func (dn *DataNode) GetVolumeIds() string {
|
||||
dn.RLock()
|
||||
defer dn.RUnlock()
|
||||
ids := make([]int, 0, len(dn.volumes))
|
||||
|
||||
for k := range dn.volumes {
|
||||
|
Loading…
Reference in New Issue
Block a user