diff options
author | unknown <sanja@askmonty.org> | 2011-07-28 17:10:29 +0300 |
---|---|---|
committer | unknown <sanja@askmonty.org> | 2011-07-28 17:10:29 +0300 |
commit | cfa08e8dadefc00e9542953a4a672b3a34f34303 (patch) | |
tree | 11bde7876d17cf506bd9d1611e178b82fae5489e /sql/sql_expression_cache.h | |
parent | 668eb2b55ed2cefeb79e196ba48565a75f485f15 (diff) | |
download | mariadb-git-cfa08e8dadefc00e9542953a4a672b3a34f34303.tar.gz |
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.
Diffstat (limited to 'sql/sql_expression_cache.h')
-rw-r--r-- | sql/sql_expression_cache.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/sql_expression_cache.h b/sql/sql_expression_cache.h index f1d141abbd1..f02c3f8caca 100644 --- a/sql/sql_expression_cache.h +++ b/sql/sql_expression_cache.h @@ -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; }; |