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 <[email protected]> Authored: Wed Nov 14 17:26:16 2018 +0800 Committer: SuJinpei <[email protected]> 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 */
