Review Board 1.7.22


QPID-3950: Allow browsing of queues with exclusive subscriptions

Review Request #4744 - Created April 16, 2012 and submitted

Alan Conway
Reviewers
qpid
gordon
qpid
The C++ broker already allows browsing subscriptons to exclusive queues. To be consistent we need to extend this to queues with exclusive subscritions as well. This is required by the new HA plugin (QPID-3603) so that replicating subscriptions can browse from exclusive queues in order to replicate their messages to a backup broker.
make check
/trunk/qpid/cpp/src/qpid/broker/Queue.h
Revision 1326757 New Change
[20] 94 lines
[+20] [+] class Queue : public boost::enable_shared_from_this<Queue>,
95

    
   
95

   
96
    const std::string name;
96
    const std::string name;
97
    const bool autodelete;
97
    const bool autodelete;
98
    MessageStore* store;
98
    MessageStore* store;
99
    const OwnershipToken* owner;
99
    const OwnershipToken* owner;
100
    uint32_t consumerCount;
100
    uint32_t consumerCount;     // Actually a count of all subscriptions, acquiring or not.

    
   
101
    uint32_t browserCount;      // Count of non-acquiring subscriptions.
101
    OwnershipToken* exclusive;
102
    OwnershipToken* exclusive;
102
    bool noLocal;
103
    bool noLocal;
103
    bool persistLastNode;
104
    bool persistLastNode;
104
    bool inLastNodeFailure;
105
    bool inLastNodeFailure;
105
    std::string traceId;
106
    std::string traceId;
[+20] [20] 310 lines
/trunk/qpid/cpp/src/qpid/broker/Queue.cpp
Revision 1326757 New Change
 
/trunk/qpid/cpp/src/qpid/broker/SessionAdapter.cpp
Revision 1326757 New Change
 
/trunk/qpid/cpp/src/tests/ha_tests.py
Revision 1326757 New Change
 
  1. /trunk/qpid/cpp/src/qpid/broker/Queue.h: Loading...
  2. /trunk/qpid/cpp/src/qpid/broker/Queue.cpp: Loading...
  3. /trunk/qpid/cpp/src/qpid/broker/SessionAdapter.cpp: Loading...
  4. /trunk/qpid/cpp/src/tests/ha_tests.py: Loading...