From 02757b560356e0ddb090fbe103e0b65db6dbd3b3 Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Wed, 18 Jun 2008 16:34:18 +0000 Subject: Fix bug that commits after every message. Oops! git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@669215 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/tests/perftest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cpp/src/tests/perftest.cpp') 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