trafodion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dbirds...@apache.org
Subject [1/2] trafodion git commit: fix TRAFODION-3233
Date Mon, 19 Nov 2018 18:08:59 GMT
Repository: trafodion
Updated Branches:
  refs/heads/master b4749fcfc -> 084145de6


fix TRAFODION-3233


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

Branch: refs/heads/master
Commit: 87bf65df82090fde10b7705cc4137b91d86f48f6
Parents: b4749fc
Author: SuJinpei <873118042@qq.com>
Authored: Wed Nov 14 17:26:16 2018 +0800
Committer: SuJinpei <873118042@qq.com>
Committed: Wed Nov 14 17:26:16 2018 +0800

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


http://git-wip-us.apache.org/repos/asf/trafodion/blob/87bf65df/core/conn/odb/src/odb.c
----------------------------------------------------------------------
diff --git a/core/conn/odb/src/odb.c b/core/conn/odb/src/odb.c
index 053fad7..5e427c0 100755
--- a/core/conn/odb/src/odb.c
+++ b/core/conn/odb/src/odb.c
@@ -5498,7 +5498,7 @@ static void etabadd(char type, char *run, int id)
                     }
                 } else {                            /* not a load job */
                     etab[no].k = no;                /* record grandparent for copy/diff ops
*/
-                    if ( etab[no].ps > 1 ){
+                    if (etab[no].mr && etab[no].ps > 1 ){
                         etab[no].TotalMaxRecords = etab[no].mr;
                         etab[no].mr /= etab[no].ps; /* each thread will get a portion of
the max record to fetch */
                         if (etab[0].r > etab[0].mr) /* rowset size should not exceeds
the max size */


Mime
View raw message