trafodion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hzel...@apache.org
Subject [1/3] incubator-trafodion git commit: fix jira TRAFODION-2639
Date Thu, 15 Jun 2017 15:10:41 GMT
Repository: incubator-trafodion
Updated Branches:
  refs/heads/master ccb568462 -> f754758cc


fix jira TRAFODION-2639


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

Branch: refs/heads/master
Commit: ca36fd6a37d2cc1cdc1b008da2487aaa3299756f
Parents: dbd078c
Author: SuJinpei <873118042@qq.com>
Authored: Tue Jun 13 18:10:09 2017 +0800
Committer: SuJinpei <873118042@qq.com>
Committed: Tue Jun 13 18:10:09 2017 +0800

----------------------------------------------------------------------
 core/conn/odb/src/odb.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/ca36fd6a/core/conn/odb/src/odb.c
----------------------------------------------------------------------
diff --git a/core/conn/odb/src/odb.c b/core/conn/odb/src/odb.c
old mode 100644
new mode 100755
index 07dff8f..6148ade
--- a/core/conn/odb/src/odb.c
+++ b/core/conn/odb/src/odb.c
@@ -6012,7 +6012,7 @@ static void etabshuffle()
     
     srand((unsigned int)time(0));
     if ( no ) {                 /* more than one element in etab[] */
-        for ( i = 0; i < no ; i++ ) {
+        for ( i = 0; i < no - 1 ; i++ ) {
             if ( etab[i].type != 'q' ) {    /* etab[] type 'q' entries are linked to qtab[]
*/
                 j = (int) ( i + rand() / ( RAND_MAX + 1.0 ) * ( no - i + 1 ) );
                 save = etab[j].run;


Mime
View raw message