From 4a903566b3db5a006df778faa79cff0ffdf31a89 Mon Sep 17 00:00:00 2001 From: hlts2 Date: Mon, 9 Sep 2024 12:09:27 +0900 Subject: [PATCH] fix: bugfix flush logic Signed-off-by: hlts2 --- pkg/agent/core/ngt/service/ngt.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/agent/core/ngt/service/ngt.go b/pkg/agent/core/ngt/service/ngt.go index 095f0b6f0a..9809e9d6b7 100644 --- a/pkg/agent/core/ngt/service/ngt.go +++ b/pkg/agent/core/ngt/service/ngt.go @@ -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 { // delete file err = file.DeleteDir(ctx, n.path) if err != nil {