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:36 UTC

[1/2] trafodion git commit: merge [TRAFODION-3075] DCS start fail at CentOS 7

Repository: trafodion
Updated Branches:
  refs/heads/master cc3faca56 -> 2c5f48018


merge [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/2c5f4801
Tree: http://git-wip-us.apache.org/repos/asf/trafodion/tree/2c5f4801
Diff: http://git-wip-us.apache.org/repos/asf/trafodion/diff/2c5f4801

Branch: refs/heads/master
Commit: 2c5f4801863816435c1d9057a47778b65405fcad
Parents: cc3faca 92e3416
Author: Liu Ming <ov...@sina.com>
Authored: Sun May 20 09:21:49 2018 +0000
Committer: Liu Ming <ov...@sina.com>
Committed: Sun May 20 09:21:49 2018 +0000

----------------------------------------------------------------------
 core/sqf/export/include/seabed/int/thread.inl | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------



[2/2] trafodion git commit: [TRAFODION-3075] DCS start fail at CentOS 7

Posted by li...@apache.org.
[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);