summaryrefslogtreecommitdiff
path: root/qpid/cpp/src/qpid/types
Commit message (Collapse)AuthorAgeFilesLines
* QPID-5489: Uuid code improvementsAndrew Stitcher2014-01-171-14/+8
| | | | | | | | | | | | | - Don't use uuid_compare() as it will get the wrong version of the function under FreeBSD which has a uuid library build into libc with different function signatures from libuuid but some overlapping names. - Reorganise the uuid code to limit the used external symbols to uuid_generate(), uuid_parse(), uuid_unparse() - Minimise the framing::Uuid code so that it is a simple wrapper around types::Uuid - Use uuid_generate() as the symbol to search in CMake (uuid_compare() isn't used in qpid anymore). git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1559017 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5040: support for sending and receiving messages with AmqpValue sectionsGordon Sim2013-08-131-0/+33
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1513536 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5051: fixes for swig test failures on RHEL5 (and the failure to detect ↵Gordon Sim2013-08-071-0/+1
| | | | | | them) git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1511483 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4327: HA TX transactions, blocking wait for prepareAlan Conway2013-08-011-0/+5
| | | | | | | | | | | Backups send prepare messages to primary, primary delays completion of prepare till all are prepared (or there is a failure). This is NOT the production solution - blocking could cause a deadlock. We need to introduce asynchronous completion of prepare without blocking. This interim solution allows testing on other aspects of TX support. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1509424 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4348: HA Use independent sequence numbers for identifying messagesAlan Conway2013-06-171-0/+8
| | | | | | | | | | | | | | | Previously HA code used queue sequence numbers to identify messasges. This assumes that message sequence is identical on primary and backup. Implementing new features (for example transactions) requires that we tolerate ordering differences between primary and backups. This patch introduces a new, queue-scoped HA sequence number managed by the HA plugin. The HA ID is set *before* the message is enqueued and assigned a queue sequence number. This means it is possible to identify messages before they are enqueued, e.g. messages in an open transaction. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1493771 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4822: Allow Variant::parse() to produce VAR_UINT64 types.Andrew Stitcher2013-05-081-1/+4
| | | | | | | | - Extend qpid::messaging::Variant string parser to output unsigned 64 bit type where relevant (positive integer larger than signed 64 bits) - Added some unit tests for the qpid::messageing::Variant string parser git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1480376 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4531 : older GCC libs have error on negative-zero cast.Michael Goulish2013-01-101-7/+13
| | | | | | | | This is a real fix, a replacement for r1431435, which was written by a crazy person. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1431548 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA : undoing r1431435. It's wrong, wrong, wrong!Michael Goulish2013-01-101-9/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1431509 13f79535-47bb-0310-9956-ffa450edef68
* JIRA-4531 : Variant.cpp cast of -0 failing with older GCCMichael Goulish2013-01-101-0/+10
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1431435 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4428: HA add UUID tag to avoid using an out of date queue/exchange.Alan Conway2012-11-141-1/+3
| | | | | | | | | | | | | | | | | Imagine a cluster with primary A and backups B and C. A queue Q is created on A and replicated to B, C. Now A dies and B takes over as primary. Before C can connect to B, a client destroys Q and creates a new queue with the same name. When B connects it sees Q and incorrectly assumes it is the same Q that it has already replicated. Now C has an inconsistent replica of Q. The fix is to tag queues/exchanges with a UUID so a backup can tell if a queue is not the same as the one it has already replicated, even if the names are the same. This all also applies to exchanges. - Minor imrovements to printing UUIDs in a FieldTable. - Fix comparison of void Variants, added operator != git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1409241 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Changed VariantImpl to use a union more sensibly and avoid ugly and ↵Andrew Stitcher2012-07-061-39/+33
| | | | | | | | potentially buggy reinterpret_casts. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1358273 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3603: Merge new HA foundations.Alan Conway2012-02-171-12/+30
| | | | | | | Merged from qpid-3603-7. This is basic support for the new HA approach. For information & limitations see qpid/cpp/design_docs/new-ha-design.txt. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1245587 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2323 - Fixed a build error by adding a missing include.Ted Ross2011-10-181-0/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1185673 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2323 Add Uuid to variantCharles E. Rolke2011-10-171-6/+12
| | | | | | | | This patch adds a const_cast to the Uuid buffer references. On Solaris the Uuid library calls take non-const args. See also r881679 for related Solaris fix-ups. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1185373 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3457: qpid::Msg::str() method not exportedAlan Conway2011-08-261-1/+0
| | | | | | | - Added the QPID_COMMON_EXTERN declaration to Msg.h - Removed a spurious #include "Msg.h" from qpid/types/Variant.cpp git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1162233 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2905 - Misc. code cleanup to allow compilation on a wider set of compilers.Ted Ross2011-05-171-5/+5
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1104560 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3206: added special cases to catch negative numeric string conversions ↵Gordon Sim2011-04-141-4/+17
| | | | | | to unsigned values git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1092219 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3089: make getTypeName() a public methodGordon Sim2011-02-281-2/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1075380 13f79535-47bb-0310-9956-ffa450edef68
* Changed Variant::fromString() to Variant::parse(). Also changed implementation.Jonathan Robie2010-11-011-33/+13
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1029673 13f79535-47bb-0310-9956-ffa450edef68
* Corrects AddressParser to use typed simple values.Jonathan Robie2010-10-291-0/+37
| | | | | | | | | | Adds Variant::fromString(). Resolves QPID-2896 and QPID-2908. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1028860 13f79535-47bb-0310-9956-ffa450edef68
* Fix some compilation errorsGordon Sim2010-08-121-23/+17
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@984714 13f79535-47bb-0310-9956-ffa450edef68
* Completed the set of permutations of type-conversion for all signed and ↵Ted Ross2010-08-121-6/+156
| | | | | | unsigned integer types. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@984622 13f79535-47bb-0310-9956-ffa450edef68
* QPID-664: Avoid allocation for void VariantGordon Sim2010-06-111-26/+29
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@953615 13f79535-47bb-0310-9956-ffa450edef68
* Cluster management improvements:Ted Ross2010-04-231-6/+30
| | | | | | | | | | | 1) Enable all management methods via QMFv2 for clusters 2) Disable all management methods via QMFv1 for clusters 3) The broker-resident management agent can handle both v1 and v2 method calls 4) qmf.console (Python) now works with new and old brokers by detecting whether the broker can handle v2 commands git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@937472 13f79535-47bb-0310-9956-ffa450edef68
* QPID-664: changed connect() back to open(),removed detach(),defined new ↵Gordon Sim2010-04-092-4/+34
| | | | | | exception hierarchy, added ability to re-use reconnect/replay logic for resource-limit-exceeded errors git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@932451 13f79535-47bb-0310-9956-ffa450edef68
* QPID-664: made changes suggested by Alan Conway, also moved 0-10 map/list ↵Gordon Sim2010-03-311-1/+1
| | | | | | codecs to common lib git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@929606 13f79535-47bb-0310-9956-ffa450edef68
* QPID-664: move Variant and Uuid from messaging to types namespaceGordon Sim2010-03-292-0/+830
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@928814 13f79535-47bb-0310-9956-ffa450edef68