From 39844dfa264d4694dcbd58071f210a6026242fbe Mon Sep 17 00:00:00 2001 From: hehechen Date: Thu, 27 Oct 2022 11:49:26 +0800 Subject: [PATCH] fix update progress bug Signed-off-by: hehechen --- ddl/ddl_tiflash_api.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ddl/ddl_tiflash_api.go b/ddl/ddl_tiflash_api.go index 6c818be465de9..d495394da6c3d 100644 --- a/ddl/ddl_tiflash_api.go +++ b/ddl/ddl_tiflash_api.go @@ -468,8 +468,9 @@ func pollAvailableTableProgress(schemas infoschema.InfoSchema, ctx sessionctx.Co } pollTiFlashContext.ProgressCache[availableTableID.ID] = progress } + next := element.Next() pollTiFlashContext.UpdatingProgressTables.Remove(element) - element = element.Next() + element = next } }