summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Paquier2012-06-21 09:28:54 +0000
committerMichael Paquier2012-06-21 09:28:54 +0000
commite628e2d488a756e1858418385bff4e523a908bec (patch)
treec7febb9ae920b891aeb3632294b137eef513c92c
parent82e55363b47cfce130d06c4233b757e406d918c0 (diff)
Fix for crash at gtm_proxy startup in 32b-linux machines
This fix adds an additional boolean flag in GTM-Proxy thread info to make it similar to the one used in GTM. The problem which was happening was that GTM-Proxy tried to use the memory structure of the thread info of GTM. Crash problems are solved but we should find in the future a smarter way to manage GTM and GTM-Proxy memory allocation APIs as they are now strongly dependant on each other and we may find similar issues if some new developments are done on GTM and/or GTM-Proxy. Report from Plexo Rama and patch from Koichi Suzuki.
-rw-r--r--src/include/gtm/gtm_proxy.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/include/gtm/gtm_proxy.h b/src/include/gtm/gtm_proxy.h
index c9426390e3..93d1693d4b 100644
--- a/src/include/gtm/gtm_proxy.h
+++ b/src/include/gtm/gtm_proxy.h
@@ -69,6 +69,7 @@ typedef struct GTMProxy_ThreadInfo
*/
GTM_ThreadID thr_id;
uint32 thr_localid;
+ bool is_main_thread;
void * (* thr_startroutine)(void *);
MemoryContext thr_thread_context;