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 <[email protected]>
Authored: Mon Jun 27 11:00:16 2016 +0800
Committer: Ruilong Huo <[email protected]>
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();
 

Reply via email to