diff options
| author | Andrew Stitcher <astitcher@apache.org> | 2009-06-11 14:24:05 +0000 |
|---|---|---|
| committer | Andrew Stitcher <astitcher@apache.org> | 2009-06-11 14:24:05 +0000 |
| commit | b2838cde6c363bdd3dae72e54768f9c510afd994 (patch) | |
| tree | 2f521a7568bf2fee7fa36b2927d7f822a28088de /cpp/src/qpid/cluster | |
| parent | 024f9243d86a2691a5ea76183c42b1978dceb6c8 (diff) | |
| download | qpid-python-b2838cde6c363bdd3dae72e54768f9c510afd994.tar.gz | |
Add flag to broker Connection so that it knows if it is a
local or shadow connection
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@783789 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/cluster')
| -rw-r--r-- | cpp/src/qpid/cluster/Connection.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cpp/src/qpid/cluster/Connection.cpp b/cpp/src/qpid/cluster/Connection.cpp index be6281b4e3..afecbd50e5 100644 --- a/cpp/src/qpid/cluster/Connection.cpp +++ b/cpp/src/qpid/cluster/Connection.cpp @@ -94,6 +94,7 @@ void Connection::init() { else { // Shadow or catch-up connection connection.setClusterOrderOutput(nullFrameHandler); // Passive, discard cluster-order frames connection.setClientThrottling(false); // Disable client throttling, done by active node. + connection.setShadow(); // Mark the broker connection as a shadow. } if (!isCatchUp()) connection.setErrorListener(this); |
