Code restructuring for memory cache.
authorTatsuo Ishii <ishii@sraoss.co.jp>
Sun, 11 Apr 2021 07:33:23 +0000 (16:33 +0900)
committerTatsuo Ishii <ishii@sraoss.co.jp>
Sun, 11 Apr 2021 07:33:23 +0000 (16:33 +0900)
commit6463dcc761dad509fba915e30d1ac506fab954e4
tree647f321260232d0abfef1f31647fdf941d543d64
parentc4370532bb896ef30cea9c88c637b9ad5b5bd55c
Code restructuring for memory cache.

Add new function pool_discard_current_temp_query_cache(). We used to
do same thing in multiple places to discard temporary query cache of
current query context. The new function performs the work, which
should prevent mistakes like bug 700.

Since this is just a code restructuring, I only apply this to master
and 4.2 stable branches.
src/include/query_cache/pool_memqcache.h
src/protocol/pool_process_query.c
src/protocol/pool_proto_modules.c
src/query_cache/pool_memqcache.c