summaryrefslogtreecommitdiff
path: root/qpid/cpp/include
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2010-01-11 17:23:18 +0000
committerAlan Conway <aconway@apache.org>2010-01-11 17:23:18 +0000
commit291a25b980e537301b1ffc229e09e73a65113883 (patch)
tree41c879ba9def7584a57eb9e36cbab0181c66dc2a /qpid/cpp/include
parent8d507066084d55e9a79f082d22651a55dfba88f2 (diff)
downloadqpid-python-291a25b980e537301b1ffc229e09e73a65113883.tar.gz
Fix broker crash "confirmed N but only sent M" with managed agents running.
The broker's ManagementAgent caches schemas from managed agents. This cache was not being replicated to new cluster members. If an agent such as sesame was running and connected to a newly-joined broker, that broker could send schema request messages which were not sent by other brokers that had the schema in cache. This resulted in the other brokers exiting with a "confirmed N but only sent M" message. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@897955 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/include')
-rw-r--r--qpid/cpp/include/qpid/framing/Buffer.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/qpid/cpp/include/qpid/framing/Buffer.h b/qpid/cpp/include/qpid/framing/Buffer.h
index 8a6a5c0d5f..50cc6fefe4 100644
--- a/qpid/cpp/include/qpid/framing/Buffer.h
+++ b/qpid/cpp/include/qpid/framing/Buffer.h
@@ -43,9 +43,8 @@ class Buffer
uint32_t position;
uint32_t r_position;
- void checkAvailable(uint32_t count) { if (position + count > size) throw OutOfBounds(); }
-
public:
+ void checkAvailable(uint32_t count) { if (position + count > size) throw OutOfBounds(); }
/** Buffer input/output iterator.
* Supports using an amqp_0_10::Codec with a framing::Buffer.