diff options
author | Alan Conway <aconway@apache.org> | 2010-01-11 17:23:18 +0000 |
---|---|---|
committer | Alan Conway <aconway@apache.org> | 2010-01-11 17:23:18 +0000 |
commit | 892e84f39a40a3868ca5630371784e883127f21a (patch) | |
tree | 913127cae64803e5b00589bf5257e3729c5c66e7 /cpp/include | |
parent | 7a3841889a648eac5f57305c80f1f25a01a115ee (diff) | |
download | qpid-python-892e84f39a40a3868ca5630371784e883127f21a.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/qpid@897955 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/include')
-rw-r--r-- | cpp/include/qpid/framing/Buffer.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/cpp/include/qpid/framing/Buffer.h b/cpp/include/qpid/framing/Buffer.h index 8a6a5c0d5f..50cc6fefe4 100644 --- a/cpp/include/qpid/framing/Buffer.h +++ b/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. |