pgpool2.git / summary / log / commit / refs
commit 228b20e43e7d719bb4acc5dc03e7c521f0099f3b
Author: Tatsuo Ishii <ishii@sraoss.co.jp>
Date: Fri Oct 05 12:49:22 2018 +0000
Fix comment broken by pgindent.
src/query_cache/pool_memqcache.c | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/src/query_cache/pool_memqcache.c b/src/query_cache/pool_memqcache.c
index a271ddc3d..92fb921cf 100644
--- a/src/query_cache/pool_memqcache.c
+++ b/src/query_cache/pool_memqcache.c
@@ -3349,11 +3349,12 @@ pool_handle_query_cache(POOL_CONNECTION_POOL * backend, char *query, Node *node,
pool_invalidate_query_cache(num_oids, oids, true, 0);
}
- /*
+ /*--------------------------------------------------------------------
* If we have something in the query cache buffer, that means either:
- * - We only had SELECTs in the transaction - We had only SELECTs
- * after last DML Thus we can register SELECT results to cache
- * storage.
+ * - We only had SELECTs in the transaction
+ * - We had only SELECTs after the last DML
+ * Thus we can register SELECT results to cache storage.
+ *--------------------------------------------------------------------
*/
num_caches = session_context->query_cache_array->num_caches;
for (i = 0; i < num_caches; i++)
@@ -3459,6 +3460,7 @@ pool_handle_query_cache(POOL_CONNECTION_POOL * backend, char *query, Node *node,
* DML/DDL modifies the TABLE which SELECT uses.
*/
pool_check_and_discard_cache_buffer(num_oids, oids);
+ pool_reset_memqcache_buffer();
}
}
else if (num_oids == 0)
[parent: 8a7fd2a2b88e]