trafodion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sand...@apache.org
Subject [1/2] incubator-trafodion git commit: [TRAFODION-1862] Transaction ID is returned as -1 when using the in memory table for RMS stats
Date Thu, 03 Mar 2016 16:02:56 GMT
Repository: incubator-trafodion
Updated Branches:
  refs/heads/master eb036aa0b -> 1824c7e3c


[TRAFODION-1862] Transaction ID is returned as -1 when using the in memory table for RMS stats


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

Branch: refs/heads/master
Commit: 7c0156d1fc30d138cd23a8c3b7cedc98799c27ea
Parents: 72b9ec4
Author: selvaganesang <selva.govindarajan@esgyn.com>
Authored: Wed Mar 2 21:58:04 2016 +0000
Committer: selvaganesang <selva.govindarajan@esgyn.com>
Committed: Wed Mar 2 21:58:04 2016 +0000

----------------------------------------------------------------------
 core/sql/executor/ExStats.cpp | 13 ++++---------
 1 file changed, 4 insertions(+), 9 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/7c0156d1/core/sql/executor/ExStats.cpp
----------------------------------------------------------------------
diff --git a/core/sql/executor/ExStats.cpp b/core/sql/executor/ExStats.cpp
index c786005..79db486 100644
--- a/core/sql/executor/ExStats.cpp
+++ b/core/sql/executor/ExStats.cpp
@@ -10000,7 +10000,6 @@ void ExMasterStats::getVariableStatsInfo(char * dataBuffer,
           		  Lng32 maxLen)
 {
   char *buf = dataBuffer;
-  char transIdText[129];
   
   Int64 exeElapsedTime;
   Int64 compElapsedTime;
@@ -10027,10 +10026,6 @@ void ExMasterStats::getVariableStatsInfo(char * dataBuffer,
   }
   else
     exeElapsedTime = exeEndTime_ - exeStartTime_;
-  {
-    str_cpy_all(transIdText, "-1", 2);
-    transIdText[2] = '\0';
-  }
   short stmtState = stmtState_;
 
 #ifndef __EID
@@ -10045,7 +10040,7 @@ void ExMasterStats::getVariableStatsInfo(char * dataBuffer,
     "subqueryType: %s EstRowsAccessed: %f EstRowsUsed: %f compElapsedTime: %Ld "
     "exeElapsedTime: %Ld parentQid: %s parentQidSystem: %s childQid: %s "
     "rowsReturned: %Ld firstRowReturnTime: %Ld numSqlProcs: %d  numCpus: %d "
-    "exePriority: %d transId: %s suspended: %s lastSuspendTime: %Ld "
+    "exePriority: %d transId: %Ld suspended: %s lastSuspendTime: %Ld "
     "LastErrorBeforeAQR: %d AQRNumRetries: %d DelayBeforeAQR: %d "
     "reclaimSpaceCnt: %d "
     "blockedInSQL: %d blockedInClient: %d  lastActivity: %d "
@@ -10077,7 +10072,7 @@ void ExMasterStats::getVariableStatsInfo(char * dataBuffer,
               numSqlProcs_,
               numCpus_,
               exePriority_,
-              transIdText,
+              transId_,
               (isQuerySuspended_ ? "yes" : "no" ),
               querySuspendedTime_,
               aqrLastErrorCode_,
@@ -10100,7 +10095,7 @@ void ExMasterStats::getVariableStatsInfo(char * dataBuffer,
     "subqueryType: %d EstRowsAccessed: %f EstRowsUsed: %f compElapsedTime: %Ld "
     "exeElapsedTime: %Ld parentQid: %s parentQidSystem: %s childQid: %s "
     "rowsReturned: %Ld firstRowReturnTime: %Ld numSqlProcs: %d  numCpus: %d "
-    "exePriority: %d transId: %s suspended: %s lastSuspendTime: %Ld "
+    "exePriority: %d transId: %Ld suspended: %s lastSuspendTime: %Ld "
     "LastErrorBeforeAQR: %d AQRNumRetries: %d DelayBeforeAQR: %d reclaimSpaceCnt: %d "
     "blockedInSQL: %d blockedInClient: %d  lastActivity: %d "
                   "sqlSrcLen: %d sqlSrc: \"%s\"",
@@ -10131,7 +10126,7 @@ void ExMasterStats::getVariableStatsInfo(char * dataBuffer,
               numSqlProcs_,
               numCpus_,
               exePriority_,
-              transIdText,
+              transId_,
               (isQuerySuspended_ ? "yes" : "no" ),
               querySuspendedTime_,
               aqrLastErrorCode_,


Mime
View raw message