drill-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject [3/9] drill git commit: DRILL-5369: Add initializer for ServerMetaContext
Date Mon, 03 Apr 2017 05:12:03 GMT
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 <laurent@dremio.com>
Authored: Mon Mar 20 11:46:58 2017 -0700
Committer: Jinfeng Ni <jni@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) {


Mime
View raw message