summaryrefslogtreecommitdiff
path: root/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
commite95499012b4663fdaa41a5b875be75492c1c8fb0 (patch)
treed0996eaa0bd4283431932fe085e6a8972d7598f1 /cpp/src/tests/perftest.cpp
parentb78af32f2bb9c725bacec590dbdeecaec9b2906c (diff)
downloadqpid-python-e95499012b4663fdaa41a5b875be75492c1c8fb0.tar.gz
Get rid of BasicHeaderProperties, dead code from 0-8 protocol.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@593692 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/tests/perftest.cpp')
-rw-r--r--cpp/src/tests/perftest.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/cpp/src/tests/perftest.cpp b/cpp/src/tests/perftest.cpp
index 8d970a0a6f..e311f0fcd2 100644
--- a/cpp/src/tests/perftest.cpp
+++ b/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;