diff options
| author | Gordon Sim <gsim@apache.org> | 2008-06-18 16:34:18 +0000 |
|---|---|---|
| committer | Gordon Sim <gsim@apache.org> | 2008-06-18 16:34:18 +0000 |
| commit | 3b883c2a6709c50ca68e4feaa26490f3f1471d32 (patch) | |
| tree | 43d2434665647ef4ecf5c26ed4a4f9fc863bbb8f /qpid/cpp/src/tests/perftest.cpp | |
| parent | ae351ba713cf64cc8c227e38f43b6eaa6c26139b (diff) | |
| download | qpid-python-3b883c2a6709c50ca68e4feaa26490f3f1471d32.tar.gz | |
Fix bug that commits after every message. Oops!
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@669215 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/tests/perftest.cpp')
| -rw-r--r-- | qpid/cpp/src/tests/perftest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qpid/cpp/src/tests/perftest.cpp b/qpid/cpp/src/tests/perftest.cpp index 23e9e565e0..ee4645658b 100644 --- a/qpid/cpp/src/tests/perftest.cpp +++ b/qpid/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(); |
