pgpool2.git / summary / log / commit / refs
commit 867bee20b365156969787d7fb8fcb4c295fe18a5
Author: Tatsuo Ishii <ishii@postgresql.org>
Date: Tue Mar 06 13:27:45 2012 +0000
Fix SimpleQuery() to restore pool_memory when builtin show command is
issued. For this purpose, pool_memory_context_switch_to() has been
added to pool_memory.c. Eventualy we should use this function where we
switch memory context.
pool_proto_modules.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/pool_proto_modules.c b/pool_proto_modules.c
index 7b2718335..30a0d48c0 100644
--- a/pool_proto_modules.c
+++ b/pool_proto_modules.c
@@ -316,6 +316,7 @@ POOL_STATUS SimpleQuery(POOL_CONNECTION *frontend,
pool_query_context_destroy(query_context);
pool_set_skip_reading_from_backends();
+ pool_memory_context_switch_to(old_context);
return POOL_CONTINUE;
}
}
[parent: 0b125118baec]