summaryrefslogtreecommitdiff
path: root/qpid/cpp/src/tests/perftest.cpp
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2007-11-09 23:30:59 +0000
committerAlan Conway <aconway@apache.org>2007-11-09 23:30:59 +0000
commit48c509cc0e1461fdfb175b3b0a7733a3f991faaf (patch)
tree8aacc2ddfde1be654997cb1d3ce565cf6c285d48 /qpid/cpp/src/tests/perftest.cpp
parent172426f44ac84e95052324f4f5ffe08a9665d552 (diff)
downloadqpid-python-48c509cc0e1461fdfb175b3b0a7733a3f991faaf.tar.gz
Get rid of BasicHeaderProperties, dead code from 0-8 protocol.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@593692 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/tests/perftest.cpp')
-rw-r--r--qpid/cpp/src/tests/perftest.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/qpid/cpp/src/tests/perftest.cpp b/qpid/cpp/src/tests/perftest.cpp
index 8d970a0a6f..e311f0fcd2 100644
--- a/qpid/cpp/src/tests/perftest.cpp
+++ b/qpid/cpp/src/tests/perftest.cpp
@@ -35,6 +35,8 @@ using namespace qpid;
using namespace client;
using namespace sys;
+enum DeliveryMode { TRANSIENT = 1, PERSISTENT = 2};
+
struct Opts : public TestOptions {
bool listen;
@@ -165,7 +167,7 @@ void PublishThread::run() {
Message msg(string(msgSize, 'X'), "perftest");
char* msgBuf = const_cast<char*>(msg.getData().data());
if (opts.durable)
- msg.getDeliveryProperties().setDeliveryMode(framing::PERSISTENT);
+ msg.getDeliveryProperties().setDeliveryMode(PERSISTENT);
// Time sending message.
AbsTime start=now();
if (!opts.summary) cout << "Publishing " << opts.count << " messages " << flush;