diff options
Diffstat (limited to 'cpp/src/tests/perftest.cpp')
-rw-r--r-- | cpp/src/tests/perftest.cpp | 4 |
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; |