Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PG-1248: Fix memory usage in the internal keys cache #385

Merged
merged 1 commit into from
Dec 17, 2024

Conversation

dAdAbird
Copy link
Member

There was a mistake in the new cap calculations during the cache extension. It popped up only when a new cache size was multiple of a cache record (every 256 records). Which lead to the usage of the memory beyond an allocated size. This commit fixes it.

Also fixed a typo in a variable name.

Fixes PG-1248

@dAdAbird dAdAbird requested a review from dutow as a code owner December 16, 2024 17:42
@dutow dutow changed the title Fix memory usage in the internal keys cache PG-1248: Fix memory usage in the internal keys cache Dec 17, 2024
There was a mistake in the new cap calculations during the cache extension. It popped up only when a new cache size was multiple of a cache record (every 256 records).  Which lead to the usage of the memory beyond an allocated size. This commit fixes it.

Also fixed a typo in a variable name.

Fixes PG-1248
@dAdAbird dAdAbird merged commit 8596e43 into percona:main Dec 17, 2024
11 checks passed
@dAdAbird dAdAbird deleted the aligned_mem branch December 17, 2024 16:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants