diff options
author | Gordon Sim <gsim@apache.org> | 2008-07-22 13:32:20 +0000 |
---|---|---|
committer | Gordon Sim <gsim@apache.org> | 2008-07-22 13:32:20 +0000 |
commit | ae93edc529c252366f1d628ea6d7f28a184e152c (patch) | |
tree | 0c544c73d89bdd9a02a472d3251d698e6b7c1cc1 | |
parent | eb21872cd705f8e87cf415f91c016511dc4a4771 (diff) | |
download | qpid-python-ae93edc529c252366f1d628ea6d7f28a184e152c.tar.gz |
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
-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(); |