You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafodion.apache.org by se...@apache.org on 2018/08/08 00:03:51 UTC

[2/3] trafodion git commit: [TRAFODION-3180] At times establishing a JDBC/ODBC connection takes observably long time

[TRAFODION-3180] At times establishing a JDBC/ODBC connection takes observably long time

Fixes as per the review comments


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

Branch: refs/heads/master
Commit: 10986d35082b5f267a8030f5f4d37fb96c73e5ec
Parents: 02b9a0e
Author: selvaganesang <se...@esgyn.com>
Authored: Tue Aug 7 21:13:09 2018 +0000
Committer: selvaganesang <se...@esgyn.com>
Committed: Tue Aug 7 21:13:09 2018 +0000

----------------------------------------------------------------------
 core/sql/common/IpcGuardian.cpp | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafodion/blob/10986d35/core/sql/common/IpcGuardian.cpp
----------------------------------------------------------------------
diff --git a/core/sql/common/IpcGuardian.cpp b/core/sql/common/IpcGuardian.cpp
index f223d7b..710a58f 100644
--- a/core/sql/common/IpcGuardian.cpp
+++ b/core/sql/common/IpcGuardian.cpp
@@ -4107,11 +4107,10 @@ void IpcGuardianServer::useProcess(ComDiagsArea **diags,
 				      CollHeap *diagsHeap)
 {
   SB_Phandle_Type procHandle;
-  NSK_PORT_HANDLE procHandleCopy;
   short usedlength;
   char processName[50];
   char *tmpProcessName;
-  short rc;
+  int rc;
 
   if (processName_ == NULL)
   {
@@ -4131,8 +4130,7 @@ void IpcGuardianServer::useProcess(ComDiagsArea **diags,
   short i = 0;
   while (i < 3)
   {
-    int gprc = 0;
-    gprc = get_phandle_with_retry(tmpProcessName, &procHandle);
+    rc = get_phandle_with_retry(tmpProcessName, &procHandle);
     if (rc != FEOK)
     {
       serverState_ = ERROR_STATE;