From 6fde75b10b8d71a06fcf7ae6026473b4693165f5 Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Mon, 14 Apr 2008 16:56:35 +0000 Subject: Use the errata file for final 0-10 that has a type code for xids without which dtx.recover can't work. Return the indoubt xids as an array of struct32s each of which contains an encoded xid. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@647903 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/framing/FieldValue.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'cpp/src/qpid/framing/FieldValue.cpp') diff --git a/cpp/src/qpid/framing/FieldValue.cpp b/cpp/src/qpid/framing/FieldValue.cpp index cbda061209..8171a94ef2 100644 --- a/cpp/src/qpid/framing/FieldValue.cpp +++ b/cpp/src/qpid/framing/FieldValue.cpp @@ -119,6 +119,14 @@ Str16Value::Str16Value(const std::string& v) : reinterpret_cast(v.data()+v.size()))) {} +Struct32Value::Struct32Value(const std::string& v) : + FieldValue( + 0xAB, + new VariableWidthValue<4>( + reinterpret_cast(v.data()), + reinterpret_cast(v.data()+v.size()))) +{} + IntegerValue::IntegerValue(int v) : FieldValue(0x21, new FixedWidthValue<4>(v)) { -- cgit v1.2.1