Skip to content

Commit

Permalink
fix 7253
Browse files Browse the repository at this point in the history
Signed-off-by: okJiang <[email protected]>
  • Loading branch information
okJiang committed Jan 26, 2025
1 parent 6d7be9a commit 56d58dd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import (
"fmt"
"math/rand"
"net/http"
"net/http/pprof"
"os"
"path"
"path/filepath"
Expand Down Expand Up @@ -245,6 +246,9 @@ func combineBuilderServerHTTPService(ctx context.Context, svr *Server, serviceBu
apiService.UseHandler(router)
userHandlers[pdAPIPrefix] = apiService

// fix issue https://github.com/tikv/pd/issues/7253
// FIXME: remove me after upgrade
userHandlers["/debug/pprof/trace"] = http.HandlerFunc(pprof.Trace)
return userHandlers, nil
}

Expand Down

0 comments on commit 56d58dd

Please sign in to comment.