drill-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From par...@apache.org
Subject [4/5] drill git commit: DRILL-1697: C++ client. Fix crash when listener exits prematurely.
Date Sat, 14 Feb 2015 05:51:42 GMT
DRILL-1697: C++ client. Fix crash when listener exits prematurely.


Project: http://git-wip-us.apache.org/repos/asf/drill/repo
Commit: http://git-wip-us.apache.org/repos/asf/drill/commit/7f5ce329
Tree: http://git-wip-us.apache.org/repos/asf/drill/tree/7f5ce329
Diff: http://git-wip-us.apache.org/repos/asf/drill/diff/7f5ce329

Branch: refs/heads/master
Commit: 7f5ce329d8c96936a97788717e621ff8535cd76f
Parents: 0553798
Author: Parth Chandra <pchandra@maprtech.com>
Authored: Wed Feb 11 21:37:31 2015 -0800
Committer: Parth Chandra <pchandra@maprtech.com>
Committed: Fri Feb 13 21:50:48 2015 -0800

----------------------------------------------------------------------
 contrib/native/client/src/clientlib/drillClientImpl.cpp | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/drill/blob/7f5ce329/contrib/native/client/src/clientlib/drillClientImpl.cpp
----------------------------------------------------------------------
diff --git a/contrib/native/client/src/clientlib/drillClientImpl.cpp b/contrib/native/client/src/clientlib/drillClientImpl.cpp
index c0382ba..ebeeee2 100644
--- a/contrib/native/client/src/clientlib/drillClientImpl.cpp
+++ b/contrib/native/client/src/clientlib/drillClientImpl.cpp
@@ -1134,7 +1134,9 @@ void DrillClientQueryResult::clearAndDestroy(){
         }
         m_columnDefs->clear();
     }
-    DRILL_LOG(LOG_TRACE) << "Clearing state for Query Id - " << debugPrintQid(*this->m_pQueryId)
<< std::endl;
+    if(this->m_pQueryId!=NULL){
+        DRILL_LOG(LOG_TRACE) << "Clearing state for Query Id - " << debugPrintQid(*this->m_pQueryId)
<< std::endl;
+    }
     //Tell the parent to remove this from its lists
     m_pClient->clearMapEntries(this);
 


Mime
View raw message