Skip to content

Commit

Permalink
recycle HwNum counter
Browse files Browse the repository at this point in the history
  • Loading branch information
cybwan committed Nov 17, 2023
1 parent 463a921 commit 7bc9f21
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion loxinet/mirror.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@ package loxinet
import (
"errors"

cmn "github.com/loxilb-io/loxilb/common"
tk "github.com/loxilb-io/loxilib"

cmn "github.com/loxilb-io/loxilb/common"
)

// error codes
Expand Down Expand Up @@ -221,6 +222,7 @@ func (M *MirrH) MirrDelete(name string) (int, error) {
m.DP(DpRemove)

delete(M.MirrMap, m.Key)
defer M.Mark.PutCounter(m.HwNum)

tk.LogIt(tk.LogInfo, "mirror deleted - %s\n", name)

Expand Down

0 comments on commit 7bc9f21

Please sign in to comment.