diff options
author | Gordon Sim <gsim@apache.org> | 2009-01-22 21:54:50 +0000 |
---|---|---|
committer | Gordon Sim <gsim@apache.org> | 2009-01-22 21:54:50 +0000 |
commit | 74481dd2b6b97374bd4f260ca89d9103ce6383ed (patch) | |
tree | 4b861c39bfe3f8203b9736b2ead7f1f5401185d8 /cpp/src | |
parent | 27014f9f861f6ce3f3205c91f2fd3927da02e382 (diff) | |
download | qpid-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/src')
-rw-r--r-- | cpp/src/qpid/broker/Queue.cpp | 7 |
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"); |