You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@drill.apache.org by pa...@apache.org on 2015/02/14 06:51:42 UTC
[4/5] drill git commit: DRILL-1697: C++ client. Fix crash when
listener exits prematurely.
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 <pc...@maprtech.com>
Authored: Wed Feb 11 21:37:31 2015 -0800
Committer: Parth Chandra <pc...@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);