diff options
| author | Ken Giusti <kgiusti@apache.org> | 2011-02-19 15:03:16 +0000 |
|---|---|---|
| committer | Ken Giusti <kgiusti@apache.org> | 2011-02-19 15:03:16 +0000 |
| commit | 56e81ea8b1c0816d7beeb95a290ca38697e57364 (patch) | |
| tree | f48206d10d52fdbb5a4ce93ec8068f0de4fbc9f5 /cpp/src/qpid/broker/Link.cpp | |
| parent | b72c57464ce352c252a4789b16b6d483d6d249ee (diff) | |
| download | qpid-python-56e81ea8b1c0816d7beeb95a290ca38697e57364.tar.gz | |
QPID-2935: merge producer flow control (C++ broker).
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1072356 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/broker/Link.cpp')
| -rw-r--r-- | cpp/src/qpid/broker/Link.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/src/qpid/broker/Link.cpp b/cpp/src/qpid/broker/Link.cpp index e1091df724..f3acf7c660 100644 --- a/cpp/src/qpid/broker/Link.cpp +++ b/cpp/src/qpid/broker/Link.cpp @@ -134,7 +134,7 @@ void Link::established () QPID_LOG (info, "Inter-broker link established to " << addr.str()); // Don't raise the management event in a cluster, other members wont't get this call. - if (!sys::isCluster()) + if (broker && !broker->isInCluster()) agent->raiseEvent(_qmf::EventBrokerLinkUp(addr.str())); { @@ -159,7 +159,7 @@ void Link::closed (int, std::string text) stringstream addr; addr << host << ":" << port; QPID_LOG (warning, "Inter-broker link disconnected from " << addr.str()); - if (!sys::isCluster()) + if (broker && !broker->isInCluster()) agent->raiseEvent(_qmf::EventBrokerLinkDown(addr.str())); } |
