Repository: incubator-trafodion
Updated Branches:
  refs/heads/master 6ce6a8ea9 -> 59cbda3f8


[TRAFODION-1077] AQR info missing from GET STATISTICS

Automatic query retry info was populated, but it got reset as part
of successful retry prepare.


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

Branch: refs/heads/master
Commit: a74957a0fd090249c53db8bf2d1217f14cff0ffd
Parents: 07a77b8
Author: selvaganesang <[email protected]>
Authored: Mon Oct 31 22:29:02 2016 +0000
Committer: selvaganesang <[email protected]>
Committed: Mon Oct 31 22:29:02 2016 +0000

----------------------------------------------------------------------
 core/sql/cli/Cli.cpp | 13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/a74957a0/core/sql/cli/Cli.cpp
----------------------------------------------------------------------
diff --git a/core/sql/cli/Cli.cpp b/core/sql/cli/Cli.cpp
index 9d79d90..038ab27 100644
--- a/core/sql/cli/Cli.cpp
+++ b/core/sql/cli/Cli.cpp
@@ -2270,14 +2270,17 @@ static Lng32 SQLCLI_RetryQuery(
                            flags
                            );
 
-  if (savedStmtStats)
-    savedStmtStats->setAqrInProgress(FALSE);
-
-  if (isERROR(retcode))
+  if (isERROR(retcode)) {
+      if (savedStmtStats)
+          savedStmtStats->setAqrInProgress(FALSE);
       return retcode;
+  }
       
-  if (afterPrepare)
+  if (afterPrepare) {
+     if (savedStmtStats)
+        savedStmtStats->setAqrInProgress(FALSE);
     return 0;
+  }
 
   // before executing this statement,
   // validate that the new prepare's input/output descriptors are the same

Reply via email to