You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by gs...@apache.org on 2008/07/22 15:32:21 UTC
svn commit: r678759 -
/incubator/qpid/branches/qpid.0-10/cpp/src/tests/perftest.cpp
Author: gsim
Date: Tue Jul 22 06:32:20 2008
New Revision: 678759
URL: http://svn.apache.org/viewvc?rev=678759&view=rev
Log:
Fix to transaction batching. (Backport of r669215).
Modified:
incubator/qpid/branches/qpid.0-10/cpp/src/tests/perftest.cpp
Modified: incubator/qpid/branches/qpid.0-10/cpp/src/tests/perftest.cpp
URL: http://svn.apache.org/viewvc/incubator/qpid/branches/qpid.0-10/cpp/src/tests/perftest.cpp?rev=678759&r1=678758&r2=678759&view=diff
==============================================================================
--- incubator/qpid/branches/qpid.0-10/cpp/src/tests/perftest.cpp (original)
+++ incubator/qpid/branches/qpid.0-10/cpp/src/tests/perftest.cpp Tue Jul 22 06:32:20 2008
@@ -478,7 +478,7 @@
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();