hawq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From h...@apache.org
Subject incubator-hawq git commit: HAWQ-835. Fix cannot retrieve tuple from temp table created in function
Date Mon, 27 Jun 2016 03:03:15 GMT
Repository: incubator-hawq
Updated Branches:
  refs/heads/master b74baf5cb -> 56fa20678


HAWQ-835. Fix cannot retrieve tuple from temp table created in function


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

Branch: refs/heads/master
Commit: 56fa20678cdc9b474fda284fbf8cb0916137094e
Parents: b74baf5
Author: Ruilong Huo <rhuo@pivotal.io>
Authored: Mon Jun 27 11:00:16 2016 +0800
Committer: Ruilong Huo <rhuo@pivotal.io>
Committed: Mon Jun 27 11:03:47 2016 +0800

----------------------------------------------------------------------
 src/backend/cdb/cdbdatalocality.c | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/56fa2067/src/backend/cdb/cdbdatalocality.c
----------------------------------------------------------------------
diff --git a/src/backend/cdb/cdbdatalocality.c b/src/backend/cdb/cdbdatalocality.c
index 2fffc31..1d14e80 100644
--- a/src/backend/cdb/cdbdatalocality.c
+++ b/src/backend/cdb/cdbdatalocality.c
@@ -857,6 +857,7 @@ int64 get_block_locations_and_claculte_table_size(split_to_segment_mapping_conte
 
 	MemoryContextSwitchTo(context->datalocality_memorycontext);
 
+	ActiveSnapshot = GetTransactionSnapshot();
 	ActiveSnapshot = CopySnapshot(ActiveSnapshot);
 	ActiveSnapshot->curcid = GetCurrentCommandId();
 


Mime
View raw message