hawq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hubertzh...@apache.org
Subject [1/5] incubator-hawq git commit: Revert "HAWQ-673. Unify out put of explain analyze."
Date Thu, 14 Apr 2016 08:01:25 GMT
Repository: incubator-hawq
Updated Branches:
  refs/heads/master 8ba02a818 -> e9c5dc3d7


Revert "HAWQ-673. Unify out put of explain analyze."

This reverts commit 8ba02a8188d26b52615889bc44624db2cdf964b6.


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

Branch: refs/heads/master
Commit: f786bb876f30dcff9f439e1d8f324b3ca9e51c86
Parents: 8ba02a8
Author: hzhang2 <zhanghuan929@163.com>
Authored: Thu Apr 14 15:50:53 2016 +0800
Committer: hzhang2 <zhanghuan929@163.com>
Committed: Thu Apr 14 15:50:53 2016 +0800

----------------------------------------------------------------------
 src/backend/cdb/cdbexplain.c | 1 +
 src/include/cdb/cdbexplain.h | 4 ++--
 2 files changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/f786bb87/src/backend/cdb/cdbexplain.c
----------------------------------------------------------------------
diff --git a/src/backend/cdb/cdbexplain.c b/src/backend/cdb/cdbexplain.c
index d6583b8..f20a7e5 100644
--- a/src/backend/cdb/cdbexplain.c
+++ b/src/backend/cdb/cdbexplain.c
@@ -306,6 +306,7 @@ cdbexplain_localExecStats(struct PlanState                 *planstate,
 
     /* Set up a temporary StatHdr for both collecting and depositing stats. */
     gethostname(ctx.send.hdr.hostname,SEGMENT_IDENTITY_NAME_LENGTH-1);
+    //strncpy(ctx.send.hdr.hostname,gethostname(),SEGMENT_IDENTITY_NAME_LENGTH-1);
     ctx.msgptrs[0] = &ctx.send.hdr;
     ctx.send.hdr.segindex = GetQEIndex();
     ctx.send.hdr.nInst = 1;

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/f786bb87/src/include/cdb/cdbexplain.h
----------------------------------------------------------------------
diff --git a/src/include/cdb/cdbexplain.h b/src/include/cdb/cdbexplain.h
index 761b48d..719eb38 100644
--- a/src/include/cdb/cdbexplain.h
+++ b/src/include/cdb/cdbexplain.h
@@ -74,7 +74,7 @@ cdbexplain_agg_init1(CdbExplain_Agg *agg, double v, int id)
 static inline bool
 cdbexplain_agg_upd(CdbExplain_Agg *agg, double v, int id,char* hostname)
 {
-    if(v == 0){
+    /*if(v == 0){
       if (agg->vcnt == 0)
         {
             agg->vmax = v;
@@ -84,7 +84,7 @@ cdbexplain_agg_upd(CdbExplain_Agg *agg, double v, int id,char* hostname)
             return true;
         }
     }
-    else if (v > 0)
+    else */if (v > 0)
     {
         agg->vsum += v;
         agg->vcnt++;


Mime
View raw message