-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kv: store span by pointer in latch struct
This pr changes the latch struct to store a pointer to span that is preallocated on the heap. The new struct will reduce memory footprint of span by 40 bytes. One side effect would be increase the probably of running into nil pointer issue especially when spans pointer are not initialized and accessed properly. Fixes: #114603 Release note: None.
- Loading branch information
1 parent
1473312
commit 831c61d
Showing
2 changed files
with
44 additions
and
13 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