-
Notifications
You must be signed in to change notification settings - Fork 986
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
query_cache_size_MB overflow #2040
Comments
Thank you for the report.
|
renecannao
added a commit
that referenced
this issue
May 1, 2019
Fixed in 2.0.4 |
Closing. |
Dieken
pushed a commit
to Dieken/proxysql
that referenced
this issue
May 13, 2019
(cherry picked from commit b8f6e0f)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I was seeing unexpected purges when setting
mysql-query_cache_size_MB=4096
. After poking around the source code, I think this is due to int overflow here:proxysql/lib/Query_Cache.cpp
Line 406 in 00f26d5
because
mysql_thread___query_cache_size_MB
is anint
. We should probably replace all the size-related vars withsize_t
, or at the very least cast before performing arithmetic on it.The text was updated successfully, but these errors were encountered: