Revert "Revert "Merge branch 'master' of https://github.com/seaweedfs/seaweedfs""
This reverts commit 8cb42c39
This commit is contained in:
@@ -5,6 +5,7 @@ import (
|
||||
"github.com/seaweedfs/seaweedfs/weed/storage/types"
|
||||
"github.com/seaweedfs/seaweedfs/weed/util"
|
||||
"golang.org/x/exp/slices"
|
||||
"strings"
|
||||
"time"
|
||||
)
|
||||
|
||||
@@ -69,8 +70,8 @@ func (r *Rack) ToInfo() (info RackInfo) {
|
||||
dns = append(dns, dn.ToInfo())
|
||||
}
|
||||
|
||||
slices.SortFunc(dns, func(a, b DataNodeInfo) bool {
|
||||
return a.Url < b.Url
|
||||
slices.SortFunc(dns, func(a, b DataNodeInfo) int {
|
||||
return strings.Compare(a.Url, b.Url)
|
||||
})
|
||||
|
||||
info.DataNodes = dns
|
||||
|
||||
Reference in New Issue
Block a user