summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/cluster/Connection.h
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2008-10-16 17:07:26 +0000
committerAlan Conway <aconway@apache.org>2008-10-16 17:07:26 +0000
commitd39a165c9c8d1fa2fd728a2237117efa71848874 (patch)
treedd07b81f1f2d2de42ce2fdf28432130566a5622e /cpp/src/qpid/cluster/Connection.h
parentf7a4f7bcf77726767d0905f56f5c44c7a34d82a3 (diff)
downloadqpid-python-d39a165c9c8d1fa2fd728a2237117efa71848874.tar.gz
Fix race in cluster causing incorrect known-broker lists to be sent to clients.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@705287 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/cluster/Connection.h')
-rw-r--r--cpp/src/qpid/cluster/Connection.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/cpp/src/qpid/cluster/Connection.h b/cpp/src/qpid/cluster/Connection.h
index 7d92987e01..b537470b41 100644
--- a/cpp/src/qpid/cluster/Connection.h
+++ b/cpp/src/qpid/cluster/Connection.h
@@ -64,12 +64,13 @@ class Connection :
bool isLocal() const;
/** True for connections that are shadowing remote broker connections */
- bool isShadow() const { return !isLocal(); }
+ bool isShadow() const;
/** True if the connection is in "catch-up" mode: building initial broker state. */
bool isCatchUp() const { return catchUp; }
- bool isDump() const { return self.getPointer() == 0; }
+ /** True if the connection is a completed shared dump connection */
+ bool isDumped() const;
Cluster& getCluster() { return cluster; }
@@ -103,6 +104,7 @@ class Connection :
void membership(const framing::FieldTable&, const framing::FieldTable&);
private:
+ bool catcUp;
void deliverClose();
void deliverDoOutput(uint32_t requested);