From 9ba42cc7b5b593a94d879894d0d13276d56490aa Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Thu, 28 Jan 2010 21:38:19 +0000 Subject: QPID-2357 Broker boot sequence doesn't synchronize when clustered - patch from John Dunning git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@904270 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/cluster/Connection.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'cpp/src/qpid/cluster/Connection.cpp') diff --git a/cpp/src/qpid/cluster/Connection.cpp b/cpp/src/qpid/cluster/Connection.cpp index 3f37d63255..c1c9c02611 100644 --- a/cpp/src/qpid/cluster/Connection.cpp +++ b/cpp/src/qpid/cluster/Connection.cpp @@ -513,5 +513,19 @@ void Connection::managementSchema(const std::string& data) { QPID_LOG(debug, cluster << " updated management schemas"); } +// +// This is the handler for incoming managementsetup messages. +// +void Connection::managementSetupState(uint64_t objectNum, uint16_t bootSequence) +{ + QPID_LOG(debug, "Running managementsetup state handler, new objectnum " + << objectNum << " seq " << bootSequence); + management::ManagementAgent* agent = cluster.getBroker().getManagementAgent(); + if (!agent) + throw Exception(QPID_MSG("Management schema update but no management agent.")); + agent->setNextObjectId(objectNum); + agent->setBootSequence(bootSequence); +} + }} // Namespace qpid::cluster -- cgit v1.2.1