summaryrefslogtreecommitdiff
path: root/cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp')
-rw-r--r--cpp/src/qpid/broker/BrokerAdapter.cpp1
-rw-r--r--cpp/src/qpid/broker/SemanticState.cpp8
-rw-r--r--cpp/src/qpid/broker/SemanticState.h5
3 files changed, 3 insertions, 11 deletions
diff --git a/cpp/src/qpid/broker/BrokerAdapter.cpp b/cpp/src/qpid/broker/BrokerAdapter.cpp
index 820cc2f397..daa63f4b0c 100644
--- a/cpp/src/qpid/broker/BrokerAdapter.cpp
+++ b/cpp/src/qpid/broker/BrokerAdapter.cpp
@@ -185,7 +185,6 @@ void BrokerAdapter::QueueHandlerImpl::declare(uint16_t /*ticket*/, const string&
queue = queue_created.first;
assert(queue);
if (queue_created.second) { // This is a new queue
- state.setDefaultQueue(queue);
if (alternate) {
queue->setAlternateExchange(alternate);
alternate->incAlternateUsers();
diff --git a/cpp/src/qpid/broker/SemanticState.cpp b/cpp/src/qpid/broker/SemanticState.cpp
index 09f5b8ce98..8afc2f0853 100644
--- a/cpp/src/qpid/broker/SemanticState.cpp
+++ b/cpp/src/qpid/broker/SemanticState.cpp
@@ -540,14 +540,10 @@ void SemanticState::ConsumerImpl::stop()
}
Queue::shared_ptr SemanticState::getQueue(const string& name) const {
- //Note: this can be removed soon as the default queue for sessions is scrapped in 0-10
Queue::shared_ptr queue;
if (name.empty()) {
- queue = getDefaultQueue();
- if (!queue)
- throw NotAllowedException(QPID_MSG("No queue name specified."));
- }
- else {
+ throw NotAllowedException(QPID_MSG("No queue name specified."));
+ } else {
queue = session.getBroker().getQueues().find(name);
if (!queue)
throw NotFoundException(QPID_MSG("Queue not found: "<<name));
diff --git a/cpp/src/qpid/broker/SemanticState.h b/cpp/src/qpid/broker/SemanticState.h
index ff1c8192f7..65e67283cc 100644
--- a/cpp/src/qpid/broker/SemanticState.h
+++ b/cpp/src/qpid/broker/SemanticState.h
@@ -137,15 +137,12 @@ class SemanticState : public framing::FrameHandler::Chains,
/**
* Get named queue, never returns 0.
- * @return: named queue or default queue for session if name=""
+ * @return: named queue
* @exception: ChannelException if no queue of that name is found.
* @exception: ConnectionException if name="" and session has no default.
*/
Queue::shared_ptr getQueue(const std::string& name) const;
-
- void setDefaultQueue(Queue::shared_ptr queue){ defaultQueue = queue; }
- Queue::shared_ptr getDefaultQueue() const { return defaultQueue; }
uint32_t setPrefetchSize(uint32_t size){ return prefetchSize = size; }
uint16_t setPrefetchCount(uint16_t n){ return prefetchCount = n; }