diff options
author | Sergei Golubchik <sergii@pisem.net> | 2011-04-25 17:22:25 +0200 |
---|---|---|
committer | Sergei Golubchik <sergii@pisem.net> | 2011-04-25 17:22:25 +0200 |
commit | 0accbd0364e0333e0b119aa9ce93e34ded9df6cb (patch) | |
tree | bdf0738c29dc1f57fbfba3a1754524e238f15b52 /sql/keycaches.cc | |
parent | 37f87d73ae8dc6c30594867b40a5d70159acf63c (diff) | |
download | mariadb-git-0accbd0364e0333e0b119aa9ce93e34ded9df6cb.tar.gz |
lots of post-merge changes
Diffstat (limited to 'sql/keycaches.cc')
-rw-r--r-- | sql/keycaches.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sql/keycaches.cc b/sql/keycaches.cc index 1da2f33fdad..984b5a6768b 100644 --- a/sql/keycaches.cc +++ b/sql/keycaches.cc @@ -145,17 +145,18 @@ void free_key_cache(const char *name, KEY_CACHE *key_cache) } -bool process_key_caches(process_key_cache_t func) +bool process_key_caches(process_key_cache_t func, void *param) { I_List_iterator<NAMED_ILINK> it(key_caches); NAMED_ILINK *element; + int res= 0; while ((element= it++)) { KEY_CACHE *key_cache= (KEY_CACHE *) element->data; - func(element->name, key_cache); + res |= func(element->name, key_cache, param); } - return 0; + return res != 0; } #ifdef HAVE_EXPLICIT_TEMPLATE_INSTANTIATION |