From 224a70f13d371068e489625954b7034019a151bb Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Mon, 21 Apr 2008 14:37:03 +0000 Subject: QPID-920: send message-accept for acks (as well as completion) * AckPolicy now maintains a set of transfered messages for cumulative accepts git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@650159 13f79535-47bb-0310-9956-ffa450edef68 --- qpid/cpp/src/tests/perftest.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'qpid/cpp/src/tests/perftest.cpp') diff --git a/qpid/cpp/src/tests/perftest.cpp b/qpid/cpp/src/tests/perftest.cpp index 966d708ff6..231b25daa4 100644 --- a/qpid/cpp/src/tests/perftest.cpp +++ b/qpid/cpp/src/tests/perftest.cpp @@ -533,9 +533,9 @@ struct SubscribeThread : public Client { size_t expect=0; for (size_t i = 0; i < opts.subQuota; ++i) { msg=lq.pop(); - if (opts.intervalSub) ::usleep(opts.intervalSub*1000); + if (opts.intervalSub) ::usleep(opts.intervalSub*1000); // TODO aconway 2007-11-23: check message order for. - // multiple publishers. Need an acorray of counters, + // multiple publishers. Need an array of counters, // one per publisher and a publisher ID in the // message. Careful not to introduce a lot of overhead // here, e.g. no std::map, std::string etc. @@ -550,7 +550,7 @@ struct SubscribeThread : public Client { } } if (opts.ack !=0) - msg.acknowledge(); // Cumulative ack for final batch. + subs.getAckPolicy().ackOutstanding(session); // Cumulative ack for final batch. AbsTime end=now(); // Report to publisher. -- cgit v1.2.1