From 67ec099973ca94f483d80d32c58841ba91198da5 Mon Sep 17 00:00:00 2001 From: Yu Juncen Date: Thu, 29 Feb 2024 17:59:54 +0800 Subject: [PATCH] address comments Signed-off-by: Yu Juncen --- br/pkg/utils/misc.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/br/pkg/utils/misc.go b/br/pkg/utils/misc.go index d4597a724ead7..cc57b630b2650 100644 --- a/br/pkg/utils/misc.go +++ b/br/pkg/utils/misc.go @@ -197,7 +197,7 @@ func StartExitSingleListener(ctx context.Context) (context.Context, context.Canc fmt.Println() printDelimate(fmt.Sprintf("Got signal %v to exit.", sig)) printDelimate(fmt.Sprintf("Required Goroutine Dump = %v", dumpGoroutine)) - if DumpGoroutineWhenExit.Load() { + if dumpGoroutine { printDelimate("Start Dumping Goroutine") os.Stdout.Write(AllStackInfo()) printDelimate("End of Dumping Goroutine")