File tree Expand file tree Collapse file tree 2 files changed +1
-5
lines changed
pkg/consistenthash/maglev Expand file tree Collapse file tree 2 files changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -53,10 +53,9 @@ type Backend struct {
5353}
5454
5555func InitMaglevMap () error {
56-
5756 maglevTableSize = DefaultTableSize
58-
5957 opt := & ebpf.LoadPinOptions {}
58+
6059 outer_map , err := ebpf .LoadPinnedMap ("/sys/fs/bpf" + "/bpf_kmesh/map/" + MaglevOuterMapName , opt )
6160 if err != nil {
6261 return fmt .Errorf ("load outer map of maglev failed err: %v" , err )
@@ -157,7 +156,6 @@ func getPermutation(b Backend) uint64 {
157156}
158157
159158func getLookupTable (cluster * cluster_v2.Cluster , tableSize uint64 ) ([]int , error ) {
160-
161159 loadAssignment := cluster .GetLoadAssignment ()
162160 clusterName := cluster .GetName ()
163161 localityLbEps := loadAssignment .GetEndpoints ()
Original file line number Diff line number Diff line change @@ -63,7 +63,6 @@ func (suite *MaglevTestSuite) SetupSuite() {
6363}
6464
6565func (suite * MaglevTestSuite ) TearDownSuite () {
66-
6766 fmt .Println (">>> From TearDownSuite" )
6867}
6968
@@ -107,7 +106,6 @@ func (suite *MaglevTestSuite) TestGetLookupTable() {
107106 for k , v := range backendCount {
108107 fmt .Printf ("\n backend_id:%v, count:%v\n " , k , v )
109108 }
110-
111109}
112110
113111func newCluster () * cluster_v2.Cluster {
You can’t perform that action at this time.
0 commit comments