From ae93edc529c252366f1d628ea6d7f28a184e152c Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Tue, 22 Jul 2008 13:32:20 +0000 Subject: Fix to transaction batching. (Backport of r669215). git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/qpid.0-10@678759 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/tests/perftest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpp/src/tests/perftest.cpp b/cpp/src/tests/perftest.cpp index 23e9e565e0..ee4645658b 100644 --- a/cpp/src/tests/perftest.cpp +++ b/cpp/src/tests/perftest.cpp @@ -478,7 +478,7 @@ struct PublishThread : public Client { 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(); -- cgit v1.2.1