1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-27 18:02:13 +03:00

Subquery cache going on disk management fix: Do not go on disk if hit rate is not good.

sql/sql_expression_cache.cc:
  Do not go on disk if hit rate is not good.
  Local hit/miss counters added.
sql/sql_expression_cache.h:
  Local hit/miss counters added.
This commit is contained in:
unknown
2011-07-28 17:10:29 +03:00
parent 668eb2b55e
commit cfa08e8dad
2 changed files with 44 additions and 6 deletions

View File

@ -85,6 +85,8 @@ private:
List<Item> &items;
/* Value Item example */
Item *val;
/* hit/miss counters */
uint hit, miss;
/* Set on if the object has been succesfully initialized with init() */
bool inited;
};