Skip to content

Commit

Permalink
dpvs-agent: fix confusions for realserver's inhibited and overloaded …
Browse files Browse the repository at this point in the history
…flags

Signed-off-by: ywc689 <ywc689@163.com>
  • Loading branch information
ywc689 committed Sep 12, 2023
1 parent e110554 commit e3a7ee0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tools/dpvs-agent/cmd/ipvs/post_vs_vip_port_rs.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func (h *postVsRs) Handle(params apiVs.PostVsVipPortRsParams) middleware.Respond
rss[i].SetProto(front.GetProto())
rss[i].SetAddr(rs.IP)
rss[i].SetInhibited(rs.Inhibited)
rss[i].SetOverloaded(rs.Inhibited)
rss[i].SetOverloaded(rs.Overloaded)
rss[i].SetFwdMode(fwdmode)
}

Expand Down
2 changes: 1 addition & 1 deletion tools/dpvs-agent/cmd/ipvs/put_vs_vip_port_rs.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func (h *putVsRs) Handle(params apiVs.PutVsVipPortRsParams) middleware.Responder
rss[i].SetWeight(uint32(rs.Weight))
rss[i].SetFwdMode(fwdmode)
rss[i].SetInhibited(rs.Inhibited)
rss[i].SetOverloaded(rs.Inhibited)
rss[i].SetOverloaded(rs.Overloaded)
}
}

Expand Down

0 comments on commit e3a7ee0

Please sign in to comment.