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 | 02757b560356e0ddb090fbe103e0b65db6dbd3b3 (patch) | |
tree | 29001d950770c921227a6c1188b2269049488f3f /cpp/src | |
parent | 5c8cf96b4dad3a63df82bb5e282181517544f261 (diff) | |
download | qpid-python-02757b560356e0ddb090fbe103e0b65db6dbd3b3.tar.gz |
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
Diffstat (limited to 'cpp/src')
-rw-r--r-- | cpp/src/tests/perftest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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(); |