[MDEV-4693] FLUSH STATUS is reseting Subquery_cache_miss and Subquery_cache_hits global status variables Created: 2013-06-22 Updated: 2013-07-01 Resolved: 2013-07-01 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | 5.5.31 |
| Fix Version/s: | 5.5.32 |
| Type: | Bug | Priority: | Trivial |
| Reporter: | Jean Weisbuch | Assignee: | Sergei Golubchik |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | flush, subquery | ||
| Environment: |
Debian Squeeze amd64 |
||
| Description |
|
Normally, only the SESSION status variables are flushed/reset when FLUSH STATUS is called but the Subquery_cache_hit and Subquery_cache_miss variables are globally reset (knowing that these status variables have the same value for the GLOBAL and SESSION scope).
|
| Comments |
| Comment by Elena Stepanova [ 2013-06-22 ] |
|
Not judging whether it's a bug or not (I'll leave it to somebody else to decide it), just for a note – description of FLUSH STATUS says it may reset global variables: <quote> |
| Comment by Jean Weisbuch [ 2013-06-22 ] |
|
You are right, its not a bug then as the global and session status are shared on this variable. |