hawq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From m..@apache.org
Subject [2/3] incubator-hawq git commit: HAWQ-375. Fixed Fixed hawq core dump at dispatch_free_result():1493 when run stress test
Date Tue, 02 Feb 2016 03:12:51 GMT
HAWQ-375. Fixed Fixed hawq core dump at dispatch_free_result():1493 when run stress test


Project: http://git-wip-us.apache.org/repos/asf/incubator-hawq/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-hawq/commit/01d8793c
Tree: http://git-wip-us.apache.org/repos/asf/incubator-hawq/tree/01d8793c
Diff: http://git-wip-us.apache.org/repos/asf/incubator-hawq/diff/01d8793c

Branch: refs/heads/master
Commit: 01d8793c06ba34d9cd64aa4ac284905b6638c59f
Parents: a756a80
Author: Ming LI <mli@pivotal.io>
Authored: Mon Feb 1 13:49:11 2016 +0800
Committer: Ming LI <mli@pivotal.io>
Committed: Tue Feb 2 11:10:50 2016 +0800

----------------------------------------------------------------------
 src/backend/cdb/cdbcopy.c    | 1 +
 src/backend/cdb/dispatcher.c | 6 +++++-
 2 files changed, 6 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/01d8793c/src/backend/cdb/cdbcopy.c
----------------------------------------------------------------------
diff --git a/src/backend/cdb/cdbcopy.c b/src/backend/cdb/cdbcopy.c
index 0b461fa..17ffa96 100644
--- a/src/backend/cdb/cdbcopy.c
+++ b/src/backend/cdb/cdbcopy.c
@@ -79,6 +79,7 @@ makeCdbCopy(bool is_copy_in, QueryResource *resource)
 	c->aotupcounts = NULL;
 
 	c->executors.segment_conns = NIL;
+	c->executors.errbuf.data = NULL;
 
 	/* Initialize the state of each segment database */
 	c->segdb_state = (SegDbState **) palloc((c->partition_num) * sizeof(SegDbState *));

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/01d8793c/src/backend/cdb/dispatcher.c
----------------------------------------------------------------------
diff --git a/src/backend/cdb/dispatcher.c b/src/backend/cdb/dispatcher.c
index 9d283b9..0312ea2 100644
--- a/src/backend/cdb/dispatcher.c
+++ b/src/backend/cdb/dispatcher.c
@@ -1490,7 +1490,11 @@ dispatch_free_result(DispatchDataResult *result)
 	if (!result)
 		return;
 
-	pfree(result->errbuf.data);
+	if(result->errbuf.data)
+	{
+		pfree(result->errbuf.data);
+		result->errbuf.data = NULL;
+	}
 	dispmgt_free_takeoved_segment_conns(result->segment_conns);
 }
 


Mime
View raw message