You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
285 B

  1. package topology
  2. import (
  3. "github.com/chrislusf/seaweedfs/weed/storage/erasure_coding"
  4. )
  5. func (dn *DataNode) GetEcShards() (ret []erasure_coding.EcVolumeInfo) {
  6. dn.RLock()
  7. for _, ecVolumeInfo := range dn.ecShards {
  8. ret = append(ret, ecVolumeInfo)
  9. }
  10. dn.RUnlock()
  11. return ret
  12. }