Skip to content

Commit

Permalink
fix ci failed
Browse files Browse the repository at this point in the history
Signed-off-by: wuchangye <wuchangye@huawei.com>
  • Loading branch information
nlgwcy committed Sep 27, 2024
1 parent d35e205 commit a5141a6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkg/bpf/bpf.go
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,8 @@ func StopMda() error {

func (l *BpfLoader) Stop() {
var err error
if GetExitType() == Restart {
if GetExitType() == Restart && l.config.WdsEnabled() {
C.deserial_uninit(true)
log.Infof("kmesh restart, not clean bpf map and prog")
return
}
Expand All @@ -188,7 +189,7 @@ func (l *BpfLoader) Stop() {
return
}
} else if l.config.WdsEnabled() {
C.deserial_uninit(true)
C.deserial_uninit(false)
if err = l.workloadObj.Detach(); err != nil {
CleanupBpfMap()
log.Errorf("failed detach when stop kmesh, err:%s", err)
Expand Down

0 comments on commit a5141a6

Please sign in to comment.