Skip to content

Commit

Permalink
fix: nil set to kvs and vq
Browse files Browse the repository at this point in the history
Signed-off-by: hlts2 <[email protected]>
  • Loading branch information
hlts2 committed Sep 9, 2024
1 parent c561c89 commit b3151dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/agent/core/ngt/service/ngt.go
Original file line number Diff line number Diff line change
Expand Up @@ -1242,8 +1242,8 @@ func (n *ngt) RegenerateIndexes(ctx context.Context) (err error) {
if err != nil {
log.Errorf("failed to flushing vector to ngt index in delete kvs. error: %v", err)
}
// n.kvs = nil
// n.vq = nil
n.kvs = nil
n.vq = nil

// gc
runtime.GC()
Expand Down

0 comments on commit b3151dc

Please sign in to comment.