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:40:05 +0000 (16:40 +0900)
commit077dc2fbc4bbc33adec4600adb5e532685f20d9b
treee3578ec07b6a4e875d3af15f63bc6ab2451f94d6
parent3ce359d2b972bc06c5c89655fd02f392f1dc8dd8
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