summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Ross <tross@apache.org>2008-12-03 13:57:50 +0000
committerTed Ross <tross@apache.org>2008-12-03 13:57:50 +0000
commite65f12ac20989cb8bd4d54b2821d04fb03188ea7 (patch)
treeeb4c76202e4ae6e18739f37f7179056867843fe5
parent6bbe2170a2328d8eca09150acf9a3d3f316fc3c5 (diff)
downloadqpid-python-e65f12ac20989cb8bd4d54b2821d04fb03188ea7.tar.gz
Minor fix: reuse assigned bank info when broker disconnects and reconnects.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@722888 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--qpid/cpp/src/qpid/agent/ManagementAgentImpl.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/qpid/cpp/src/qpid/agent/ManagementAgentImpl.cpp b/qpid/cpp/src/qpid/agent/ManagementAgentImpl.cpp
index 4d5034f137..08af89a72e 100644
--- a/qpid/cpp/src/qpid/agent/ManagementAgentImpl.cpp
+++ b/qpid/cpp/src/qpid/agent/ManagementAgentImpl.cpp
@@ -342,6 +342,8 @@ void ManagementAgentImpl::handleAttachResponse(Buffer& inBuffer)
cout << "Collision in object-id! New bank assigned: " << assignedBrokerBank <<
"." << assignedAgentBank << endl;
storeData();
+ requestedBrokerBank = assignedBrokerBank;
+ requestedAgentBank = assignedAgentBank;
}
attachment.setBanks(assignedBrokerBank, assignedAgentBank);