You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@drill.apache.org by jn...@apache.org on 2017/04/03 05:12:03 UTC

[3/9] drill git commit: DRILL-5369: Add initializer for ServerMetaContext

DRILL-5369: Add initializer for ServerMetaContext

ServerMetaContext had no default constructor. The lack of it
might cause m_done to be set to true, same for other variables.

Add a default constructor to explicitly initialize its members.

close #791


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

Branch: refs/heads/master
Commit: b82177ed612edd0e33ac1d5500a7dd65953c8c1d
Parents: 70f85e5
Author: Laurent Goujon <la...@dremio.com>
Authored: Mon Mar 20 11:46:58 2017 -0700
Committer: Jinfeng Ni <jn...@apache.org>
Committed: Fri Mar 31 15:31:57 2017 -0700

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


http://git-wip-us.apache.org/repos/asf/drill/blob/b82177ed/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 9d45f57..7e169e9 100644
--- a/contrib/native/client/src/clientlib/drillClientImpl.cpp
+++ b/contrib/native/client/src/clientlib/drillClientImpl.cpp
@@ -1799,6 +1799,8 @@ struct ServerMetaContext {
 	boost::mutex m_mutex;
 	boost::condition_variable m_cv;
 
+    ServerMetaContext(): m_done(false), m_status(QRY_SUCCESS), m_serverMeta(), m_mutex(), m_cv() {};
+
 	static status_t listener(void* ctx, const exec::user::ServerMeta* serverMeta, DrillClientError* err) {
 		ServerMetaContext* context = static_cast<ServerMetaContext*>(ctx);
 			if (err) {