pgpool2.git / summary / log / commit / refs
commit 56b93a55ca50294b3535686bac325dc1ea370abb
Author: Tatsuo Ishii <ishii@sraoss.co.jp>
Date: Fri Oct 05 22:12:50 2018 +0000
Revert "Fix comment broken by pgindent."
This reverts commit 228b20e43e7d719bb4acc5dc03e7c521f0099f3b.
src/query_cache/pool_memqcache.c | 10 ++++------
1 file changed, 4 insertions(+), 6 deletions(-)
diff --git a/src/query_cache/pool_memqcache.c b/src/query_cache/pool_memqcache.c
index 92fb921cf..a271ddc3d 100644
--- a/src/query_cache/pool_memqcache.c
+++ b/src/query_cache/pool_memqcache.c
@@ -3349,12 +3349,11 @@ 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 the last DML
- * Thus we can register SELECT results to cache storage.
- *--------------------------------------------------------------------
+ * - We only had SELECTs in the transaction - We had only SELECTs
+ * after 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++)
@@ -3460,7 +3459,6 @@ 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: 228b20e43e7d]