Skip to content

Commit

Permalink
[test] fix index problem
Browse files Browse the repository at this point in the history
Signed-off-by: hlts2 <hiroto.funakoshi.hiroto@gmail.com>
  • Loading branch information
hlts2 committed Aug 17, 2021
1 parent dab1e63 commit 710a39e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/agent/core/ngt/service/vqueue/queue.go
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,7 @@ func (v *vqueue) DVExists(uuid string) bool {
func (v *vqueue) addInsert(i index) {
date, ok := v.udim.Load(i.uuid)
if ok && i.date < date {
v.uiim.Delete(i.uuid)
return
}
idx, ok := v.uiim.Load(i.uuid)
Expand Down

0 comments on commit 710a39e

Please sign in to comment.