Skip to content

Commit

Permalink
fix: bugfix flush logic
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 b17cc73 commit 4a90356
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/agent/core/ngt/service/ngt.go
Original file line number Diff line number Diff line change
Expand Up @@ -1249,7 +1249,7 @@ func (n *ngt) RegenerateIndexes(ctx context.Context) (err error) {
runtime.GC()
atomic.AddUint64(&n.nogce, 1)

if n.inMem {
if !n.inMem {

Check warning on line 1252 in pkg/agent/core/ngt/service/ngt.go

View check run for this annotation

Codecov / codecov/patch

pkg/agent/core/ngt/service/ngt.go#L1252

Added line #L1252 was not covered by tests
// delete file
err = file.DeleteDir(ctx, n.path)
if err != nil {
Expand Down

0 comments on commit 4a90356

Please sign in to comment.