Return-Path: Delivered-To: apmail-incubator-qpid-commits-archive@locus.apache.org Received: (qmail 47717 invoked from network); 22 Jul 2008 13:32:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 22 Jul 2008 13:32:42 -0000 Received: (qmail 9640 invoked by uid 500); 22 Jul 2008 13:32:41 -0000 Delivered-To: apmail-incubator-qpid-commits-archive@incubator.apache.org Received: (qmail 9628 invoked by uid 500); 22 Jul 2008 13:32:41 -0000 Mailing-List: contact qpid-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: qpid-dev@incubator.apache.org Delivered-To: mailing list qpid-commits@incubator.apache.org Received: (qmail 9616 invoked by uid 99); 22 Jul 2008 13:32:41 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Jul 2008 06:32:41 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Jul 2008 13:31:55 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 4546D2388892; Tue, 22 Jul 2008 06:32:21 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r678759 - /incubator/qpid/branches/qpid.0-10/cpp/src/tests/perftest.cpp Date: Tue, 22 Jul 2008 13:32:21 -0000 To: qpid-commits@incubator.apache.org From: gsim@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20080722133221.4546D2388892@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: gsim Date: Tue Jul 22 06:32:20 2008 New Revision: 678759 URL: http://svn.apache.org/viewvc?rev=678759&view=rev Log: Fix to transaction batching. (Backport of r669215). Modified: incubator/qpid/branches/qpid.0-10/cpp/src/tests/perftest.cpp Modified: incubator/qpid/branches/qpid.0-10/cpp/src/tests/perftest.cpp URL: http://svn.apache.org/viewvc/incubator/qpid/branches/qpid.0-10/cpp/src/tests/perftest.cpp?rev=678759&r1=678758&r2=678759&view=diff ============================================================================== --- incubator/qpid/branches/qpid.0-10/cpp/src/tests/perftest.cpp (original) +++ incubator/qpid/branches/qpid.0-10/cpp/src/tests/perftest.cpp Tue Jul 22 06:32:20 2008 @@ -478,7 +478,7 @@ arg::content=msg, arg::acceptMode=1); } - if (opts.tx && (j % opts.tx == 0)) sync(session).txCommit(); + if (opts.tx && (i % opts.tx == 0)) sync(session).txCommit(); if (opts.intervalPub) ::usleep(opts.intervalPub*1000); } if (opts.confirm) session.sync();