From 74481dd2b6b97374bd4f260ca89d9103ce6383ed Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Thu, 22 Jan 2009 21:54:50 +0000 Subject: QPID-1611: Patch from Mick Goulish to ensure queues are created in store in cluster configuration git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@736814 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/broker/Queue.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'cpp/src') diff --git a/cpp/src/qpid/broker/Queue.cpp b/cpp/src/qpid/broker/Queue.cpp index 962b463571..7a578c26b5 100644 --- a/cpp/src/qpid/broker/Queue.cpp +++ b/cpp/src/qpid/broker/Queue.cpp @@ -708,6 +708,13 @@ void Queue::configure(const FieldTable& _settings) noLocal = _settings.get(qpidNoLocal); QPID_LOG(debug, "Configured queue with no-local=" << noLocal); + /* In some pathways (cluster sync) we may get to this + * point with a durable queue that does not yet have + * a store created for it. + */ + if ( isDurable() && (! getPersistenceId() ) ) + store->create(*this, _settings); + lastValueQueue= _settings.get(qpidLastValueQueue); if (lastValueQueue) QPID_LOG(debug, "Configured queue as Last Value Queue"); -- cgit v1.2.1