summaryrefslogtreecommitdiff
path: root/cpp/src
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2007-11-07 23:27:48 +0000
committerAlan Conway <aconway@apache.org>2007-11-07 23:27:48 +0000
commit985737b06a78b22b69be55493d1af04a5e2b16a0 (patch)
tree50249df94aa1864f9b682377edd10d226b073d93 /cpp/src
parentf1ba4be4acb7387cbb52e71093d2a149a903b52f (diff)
downloadqpid-python-985737b06a78b22b69be55493d1af04a5e2b16a0.tar.gz
Revert r592946
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@592948 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src')
-rw-r--r--cpp/src/tests/perftest.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/cpp/src/tests/perftest.cpp b/cpp/src/tests/perftest.cpp
index 5d412d3837..d9316527bc 100644
--- a/cpp/src/tests/perftest.cpp
+++ b/cpp/src/tests/perftest.cpp
@@ -71,17 +71,15 @@ struct PublishThread : public Runnable { Thread thread; void run(); };
// Create and purge the shared queues
void setup() {
+ cout << "Create shared queues" << endl;
Connection connection;
opts.open(connection);
Session_0_10 session = connection.newSession();
session.setSynchronous(true); // Make sure this is all completed.
session.queueDeclare(arg::queue="control"); // Control queue
- if (!opts.publish)
- return; // Only do this in publish thread.
- if (mode==SHARED)
+ session.queuePurge(arg::queue="control");
+ if (mode==SHARED) {
session.queueDeclare(arg::queue="perftest"); // Shared data queue
- if (opts.publish) { // Only do this in the publisher process.
- session.queuePurge(arg::queue="control");
session.queuePurge(arg::queue="perftest");
}
session.close();