Fix memory leak when memory_cache_enabled = on and write SQLs are sent.
authorBo Peng <pengbo@sraoss.co.jp>
Tue, 9 Oct 2018 00:20:39 +0000 (09:20 +0900)
committerBo Peng <pengbo@sraoss.co.jp>
Tue, 9 Oct 2018 00:21:22 +0000 (09:21 +0900)
commit6f2b4b1df869829635d4a45f47a734c11fded00e
treebe4f5f45f2ee045a4ec2feaa16903d369244b3a5
parente18177f884ce82b9547790b1e6657f07c66eb75f
Fix memory leak when memory_cache_enabled = on and write SQLs are sent.

In a explicit transaction, we the SELECT results are cached in temporary buffer.
If a write SQL is sent which modifies the table, the temporary buffe should be reset.
src/query_cache/pool_memqcache.c