diff options
| author | Alan Conway <aconway@apache.org> | 2007-11-10 02:52:57 +0000 |
|---|---|---|
| committer | Alan Conway <aconway@apache.org> | 2007-11-10 02:52:57 +0000 |
| commit | e2c3c3831e8e980bd7b9b423ca4e23d007a04e19 (patch) | |
| tree | b4df2e1d808796e70f304bd861ce6583996ce0ed /qpid/cpp/src/tests/perftest.cpp | |
| parent | ec7565e18bab897c361a66d46bfb2b1af3840e43 (diff) | |
| download | qpid-python-e2c3c3831e8e980bd7b9b423ca4e23d007a04e19.tar.gz | |
Add DeliveryMode enum to AMQHeaderBody.h, remove from tests.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@593726 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/tests/perftest.cpp')
| -rw-r--r-- | qpid/cpp/src/tests/perftest.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/qpid/cpp/src/tests/perftest.cpp b/qpid/cpp/src/tests/perftest.cpp index e311f0fcd2..8d970a0a6f 100644 --- a/qpid/cpp/src/tests/perftest.cpp +++ b/qpid/cpp/src/tests/perftest.cpp @@ -35,8 +35,6 @@ using namespace qpid; using namespace client; using namespace sys; -enum DeliveryMode { TRANSIENT = 1, PERSISTENT = 2}; - struct Opts : public TestOptions { bool listen; @@ -167,7 +165,7 @@ void PublishThread::run() { Message msg(string(msgSize, 'X'), "perftest"); char* msgBuf = const_cast<char*>(msg.getData().data()); if (opts.durable) - msg.getDeliveryProperties().setDeliveryMode(PERSISTENT); + msg.getDeliveryProperties().setDeliveryMode(framing::PERSISTENT); // Time sending message. AbsTime start=now(); if (!opts.summary) cout << "Publishing " << opts.count << " messages " << flush; |
