From 887637bc3b12d8b2c75bad14614443b9622933f2 Mon Sep 17 00:00:00 2001 From: guo-shaoge Date: Tue, 9 Jul 2024 18:49:47 +0800 Subject: [PATCH] executor: fix cte mem tracker failpoint condition again (#54523) close pingcap/tidb#54379 --- pkg/executor/cte.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/executor/cte.go b/pkg/executor/cte.go index ea96c56b567c7..4f57b89d3bd92 100644 --- a/pkg/executor/cte.go +++ b/pkg/executor/cte.go @@ -444,7 +444,7 @@ func (p *cteProducer) computeRecursivePart(ctx context.Context) (err error) { iterNum++ failpoint.Inject("assertIterTableSpillToDisk", func(maxIter failpoint.Value) { if iterNum > 0 && iterNum < uint64(maxIter.(int)) && err == nil { - if p.iterInTbl.GetDiskBytes() == 0 || p.iterOutTbl.GetDiskBytes() == 0 || p.resTbl.GetDiskBytes() == 0 { + if p.iterInTbl.GetDiskBytes() == 0 && p.iterOutTbl.GetDiskBytes() == 0 && p.resTbl.GetDiskBytes() == 0 { p.logTbls(ctx, err, iterNum, zapcore.InfoLevel) panic("assert row container spill disk failed") }