You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafodion.apache.org by li...@apache.org on 2018/05/20 14:35:37 UTC
[2/2] trafodion git commit: [TRAFODION-3075] DCS start fail at CentOS
7
[TRAFODION-3075] DCS start fail at CentOS 7
Project: http://git-wip-us.apache.org/repos/asf/trafodion/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafodion/commit/92e34167
Tree: http://git-wip-us.apache.org/repos/asf/trafodion/tree/92e34167
Diff: http://git-wip-us.apache.org/repos/asf/trafodion/diff/92e34167
Branch: refs/heads/master
Commit: 92e34167fd03b230f329624c76dc55323a9f27cd
Parents: cc3faca
Author: LiuMing <ov...@sina.com>
Authored: Sun May 20 18:33:28 2018 +0800
Committer: LiuMing <ov...@sina.com>
Committed: Sun May 20 18:33:28 2018 +0800
----------------------------------------------------------------------
core/sqf/export/include/seabed/int/thread.inl | 3 +++
1 file changed, 3 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/trafodion/blob/92e34167/core/sqf/export/include/seabed/int/thread.inl
----------------------------------------------------------------------
diff --git a/core/sqf/export/include/seabed/int/thread.inl b/core/sqf/export/include/seabed/int/thread.inl
index 476881d..12bda5a 100644
--- a/core/sqf/export/include/seabed/int/thread.inl
+++ b/core/sqf/export/include/seabed/int/thread.inl
@@ -68,6 +68,9 @@ SB_INLINE void SB_Thread::Sthr::sleep(int pv_ms) {
SB_INLINE void *SB_Thread::Sthr::specific_get(int pv_key) {
void *lp_data = pthread_getspecific(pv_key);
+ //a temp solution for Trafodion to running on CentOS 7
+ //Not understanding why lp_data will become 0x01
+ if(lp_data == (void *)0x01) return NULL;
#ifdef SB_THREAD_PRINT_PTHREAD_CALLS
if (gv_sb_trace_pthread)
trace_printf("pthread_getspecific(%d) EXIT, ret=%p\n", pv_key, lp_data);