-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sql: clean up txn fingerprint ID cache a bit
This commit cleans up the txn fingerprint ID cache in the following manner: - it properly performs the memory accounting for each id. Previously, we didn't connect the account to actual monitor (it was uninitialized) and we only grew by 1 byte (which is significant underestimate). We now remove unused monitor and create an account bound to the session monitor. - we now only store the id in the "key" part of the cache entry (previously we stored it also in "value" which was redundant). The main motivation for this change was reducing the memory leak that is (hopefully) fixed in the following commit. Release note: None
- Loading branch information
1 parent
f4dc2b5
commit 88ebd70
Showing
4 changed files
with
29 additions
and
35 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
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