summaryrefslogtreecommitdiff
path: root/cpp
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2009-01-22 21:54:50 +0000
committerGordon Sim <gsim@apache.org>2009-01-22 21:54:50 +0000
commit74481dd2b6b97374bd4f260ca89d9103ce6383ed (patch)
tree4b861c39bfe3f8203b9736b2ead7f1f5401185d8 /cpp
parent27014f9f861f6ce3f3205c91f2fd3927da02e382 (diff)
downloadqpid-python-74481dd2b6b97374bd4f260ca89d9103ce6383ed.tar.gz
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
Diffstat (limited to 'cpp')
-rw-r--r--cpp/src/qpid/broker/Queue.cpp7
1 files changed, 7 insertions, 0 deletions
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");