From 220d5cb0d5586578cb66f29ba040dd6aacaaa661 Mon Sep 17 00:00:00 2001 From: Mengxian Li Date: Fri, 20 Dec 2024 00:02:21 -0800 Subject: [PATCH] util: Change the output dir of the PLAN REPLAYER to be temp_dir (#58228) close pingcap/tidb#55513 --- pkg/util/replayer/replayer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/util/replayer/replayer.go b/pkg/util/replayer/replayer.go index 9711479fb6c41..dffe615749c73 100644 --- a/pkg/util/replayer/replayer.go +++ b/pkg/util/replayer/replayer.go @@ -82,6 +82,6 @@ func generatePlanReplayerFileName(isCapture, isContinuesCapture, enableHistorica // GetPlanReplayerDirName returns plan replayer directory path. // The path is related to the process id. func GetPlanReplayerDirName() string { - tidbLogDir := filepath.Dir(config.GetGlobalConfig().Log.File.Filename) + tidbLogDir := filepath.Dir(config.GetGlobalConfig().TempDir) return filepath.Join(tidbLogDir, "replayer") }