From commits-return-6818-archive-asf-public=cust-asf.ponee.io@trafodion.apache.org Fri Feb 2 05:00:56 2018 Return-Path: X-Original-To: archive-asf-public@eu.ponee.io Delivered-To: archive-asf-public@eu.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by mx-eu-01.ponee.io (Postfix) with ESMTP id 2DC0A180652 for ; Fri, 2 Feb 2018 05:00:56 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 1DAA4160C56; Fri, 2 Feb 2018 04:00:56 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 6EFD1160C44 for ; Fri, 2 Feb 2018 05:00:55 +0100 (CET) Received: (qmail 64829 invoked by uid 500); 2 Feb 2018 04:00:54 -0000 Mailing-List: contact commits-help@trafodion.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: commits@trafodion.apache.org Delivered-To: mailing list commits@trafodion.apache.org Received: (qmail 64811 invoked by uid 99); 2 Feb 2018 04:00:54 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Feb 2018 04:00:54 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 5CE56DFA0E; Fri, 2 Feb 2018 04:00:52 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: sureshs@apache.org To: commits@trafodion.apache.org Date: Fri, 02 Feb 2018 04:00:53 -0000 Message-Id: <1e6bc0aa0459447598b04d62b9ed9c0e@git.apache.org> In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [2/3] trafodion git commit: little improvement little improvement Project: http://git-wip-us.apache.org/repos/asf/trafodion/repo Commit: http://git-wip-us.apache.org/repos/asf/trafodion/commit/5cd19f67 Tree: http://git-wip-us.apache.org/repos/asf/trafodion/tree/5cd19f67 Diff: http://git-wip-us.apache.org/repos/asf/trafodion/diff/5cd19f67 Branch: refs/heads/master Commit: 5cd19f67339ed8a3595266cc6ac921a476b7c647 Parents: 0d6ce6f Author: SuJinpei <873118042@qq.com> Authored: Thu Feb 1 15:03:08 2018 +0800 Committer: SuJinpei <873118042@qq.com> Committed: Thu Feb 1 15:03:08 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/5cd19f67/core/conn/odb/src/odb.c ---------------------------------------------------------------------- diff --git a/core/conn/odb/src/odb.c b/core/conn/odb/src/odb.c index 211623e..fa3e732 100755 --- a/core/conn/odb/src/odb.c +++ b/core/conn/odb/src/odb.c @@ -5491,7 +5491,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 ){ + if ( 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 */