]> git.proxmox.com Git - ceph.git/blame - ceph/src/jaegertracing/jaeger-client-cpp/scripts/thrift-gen.patch
update source to Ceph Pacific 16.2.2
[ceph.git] / ceph / src / jaegertracing / jaeger-client-cpp / scripts / thrift-gen.patch
CommitLineData
f67539c2
TL
1diff --git a/src/jaegertracing/thrift-gen/tracetest_types.cpp b/src/jaegertracing/thrift-gen/tracetest_types.cpp
2index cb7199e..ceb7a20 100644
3--- a/src/jaegertracing/thrift-gen/tracetest_types.cpp
4+++ b/src/jaegertracing/thrift-gen/tracetest_types.cpp
5@@ -60,7 +60,7 @@ void Downstream::__set_transport(const Transport::type val) {
6 this->transport = val;
7 }
8
9-void Downstream::__set_downstream(const Downstream& val) {
10+void Downstream::__set_downstream(const std::shared_ptr<Downstream>& val) {
11 this->downstream = val;
12 __isset.downstream = true;
13 }
14@@ -141,7 +141,7 @@ uint32_t Downstream::read(::apache::thrift::protocol::TProtocol* iprot) {
15 break;
16 case 6:
17 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
18- xfer += this->downstream.read(iprot);
19+ xfer += this->downstream->read(iprot);
20 this->__isset.downstream = true;
21 } else {
22 xfer += iprot->skip(ftype);
23@@ -196,7 +196,7 @@ uint32_t Downstream::write(::apache::thrift::protocol::TProtocol* oprot) const {
24
25 if (this->__isset.downstream) {
26 xfer += oprot->writeFieldBegin("downstream", ::apache::thrift::protocol::T_STRUCT, 6);
27- xfer += this->downstream.write(oprot);
28+ xfer += this->downstream->write(oprot);
29 xfer += oprot->writeFieldEnd();
30 }
31 xfer += oprot->writeFieldStop();
32@@ -672,7 +672,7 @@ void TraceResponse::__set_span(const ObservedSpan& val) {
33 __isset.span = true;
34 }
35
36-void TraceResponse::__set_downstream(const TraceResponse& val) {
37+void TraceResponse::__set_downstream(const std::shared_ptr<TraceResponse>& val) {
38 this->downstream = val;
39 __isset.downstream = true;
40 }
41@@ -719,7 +719,7 @@ uint32_t TraceResponse::read(::apache::thrift::protocol::TProtocol* iprot) {
42 break;
43 case 2:
44 if (ftype == ::apache::thrift::protocol::T_STRUCT) {
45- xfer += this->downstream.read(iprot);
46+ xfer += this->downstream->read(iprot);
47 this->__isset.downstream = true;
48 } else {
49 xfer += iprot->skip(ftype);
50@@ -759,7 +759,7 @@ uint32_t TraceResponse::write(::apache::thrift::protocol::TProtocol* oprot) cons
51 }
52 if (this->__isset.downstream) {
53 xfer += oprot->writeFieldBegin("downstream", ::apache::thrift::protocol::T_STRUCT, 2);
54- xfer += this->downstream.write(oprot);
55+ xfer += this->downstream->write(oprot);
56 xfer += oprot->writeFieldEnd();
57 }
58 xfer += oprot->writeFieldBegin("notImplementedError", ::apache::thrift::protocol::T_STRING, 3);
59diff --git a/src/jaegertracing/thrift-gen/tracetest_types.h b/src/jaegertracing/thrift-gen/tracetest_types.h
60index 5a0e6c9..a44f3a3 100644
61--- a/src/jaegertracing/thrift-gen/tracetest_types.h
62+++ b/src/jaegertracing/thrift-gen/tracetest_types.h
63@@ -61,7 +61,7 @@ class Downstream : public virtual ::apache::thrift::TBase {
64 std::string host;
65 std::string port;
66 Transport::type transport;
67- Downstream downstream;
68+ std::shared_ptr<Downstream> downstream;
69
70 _Downstream__isset __isset;
71
72@@ -75,7 +75,7 @@ class Downstream : public virtual ::apache::thrift::TBase {
73
74 void __set_transport(const Transport::type val);
75
76- void __set_downstream(const Downstream& val);
77+ void __set_downstream(const std::shared_ptr<Downstream>& val);
78
79 bool operator == (const Downstream & rhs) const
80 {
81@@ -91,7 +91,7 @@ class Downstream : public virtual ::apache::thrift::TBase {
82 return false;
83 if (__isset.downstream != rhs.__isset.downstream)
84 return false;
85- else if (__isset.downstream && !(downstream == rhs.downstream))
86+ else if (__isset.downstream && !(*downstream == *rhs.downstream))
87 return false;
88 return true;
89 }
90@@ -273,14 +273,14 @@ class TraceResponse : public virtual ::apache::thrift::TBase {
91
92 virtual ~TraceResponse() throw();
93 ObservedSpan span;
94- TraceResponse downstream;
95+ std::shared_ptr<TraceResponse> downstream;
96 std::string notImplementedError;
97
98 _TraceResponse__isset __isset;
99
100 void __set_span(const ObservedSpan& val);
101
102- void __set_downstream(const TraceResponse& val);
103+ void __set_downstream(const std::shared_ptr<TraceResponse>& val);
104
105 void __set_notImplementedError(const std::string& val);
106
107@@ -292,7 +292,7 @@ class TraceResponse : public virtual ::apache::thrift::TBase {
108 return false;
109 if (__isset.downstream != rhs.__isset.downstream)
110 return false;
111- else if (__isset.downstream && !(downstream == rhs.downstream))
112+ else if (__isset.downstream && !(*downstream == *rhs.downstream))
113 return false;
114 if (!(notImplementedError == rhs.notImplementedError))
115 return false;