diff options
| author | Alan Conway <aconway@apache.org> | 2013-02-08 19:35:01 +0000 |
|---|---|---|
| committer | Alan Conway <aconway@apache.org> | 2013-02-08 19:35:01 +0000 |
| commit | 693535bd531f3491713c8fa2ac0685ad12f1f561 (patch) | |
| tree | 83287affd12f9608d96e20db70f9a8228fbdd474 /cpp/src/qpid/ha/ReplicationTest.cpp | |
| parent | 8b26e830dd321e0cdcd1df8e463d3d048c281226 (diff) | |
| download | qpid-python-693535bd531f3491713c8fa2ac0685ad12f1f561.tar.gz | |
QPID-4555: HA Replace QueueSettings::declaredExclusive with isTemporary.
Minor reorganization to make things clearer. It was not at all obvious what
declaredExclusive mean, isTemporary makes more sense (suggested by gsim
https://reviews.apache.org/r/9258/)
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1444200 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/ha/ReplicationTest.cpp')
| -rw-r--r-- | cpp/src/qpid/ha/ReplicationTest.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/cpp/src/qpid/ha/ReplicationTest.cpp b/cpp/src/qpid/ha/ReplicationTest.cpp index 0156c631bb..647523ef2c 100644 --- a/cpp/src/qpid/ha/ReplicationTest.cpp +++ b/cpp/src/qpid/ha/ReplicationTest.cpp @@ -65,9 +65,7 @@ ReplicateLevel ReplicationTest::getLevel(const broker::Exchange& ex) { ReplicateLevel ReplicationTest::useLevel(const broker::Queue& q) { - bool ignore = q.isAutoDelete() && q.getSettings().declaredExclusive && - !q.getSettings().autoDeleteDelay; - return ignore ? ReplicationTest(NONE).getLevel(q) : getLevel(q); + return q.getSettings().isTemporary ? ReplicationTest(NONE).getLevel(q) : getLevel(q); } ReplicateLevel ReplicationTest::useLevel(const broker::Exchange& ex) { |
