-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pkg/util/allstacks: wrap the stack traces with debugutil.SafeStack
The functions Get() and GetWithBuf() internally call runtime.Stack() to fetch the calling go routine's stack trace. This commit changes the return type of both the function from []byte to debugutil.SafeStack (introduced in #136288). This will ensure that the stack traces generated using these function are not redacted. Part of: CRDB-15292 Epic: CRDB-37533 Release note: None
- Loading branch information
1 parent
c83ac56
commit 101b9ec
Showing
3 changed files
with
11 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters