From cfa4d19ba64bb74872f8a03ef70b9a60ecbc3649 Mon Sep 17 00:00:00 2001 From: Aiee <18348405+Aiee@users.noreply.github.com> Date: Wed, 8 Dec 2021 21:12:16 +0800 Subject: [PATCH] Fix compilation --- src/common/graph/ExecutionResponseOps-inl.h | 6 +++--- src/common/graph/Response.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/common/graph/ExecutionResponseOps-inl.h b/src/common/graph/ExecutionResponseOps-inl.h index dd67ef487ae..329d3e20dfa 100644 --- a/src/common/graph/ExecutionResponseOps-inl.h +++ b/src/common/graph/ExecutionResponseOps-inl.h @@ -77,7 +77,7 @@ uint32_t Cpp2Ops<::nebula::ExecutionResponse>::write(Protocol* proto, xfer += proto->writeFieldEnd(); xfer += proto->writeFieldBegin("latency_in_us", apache::thrift::protocol::T_I64, 2); xfer += ::apache::thrift::detail::pm::protocol_methods<::apache::thrift::type_class::integral, - int32_t>::write(*proto, obj->latencyInUs); + int64_t>::write(*proto, obj->latencyInUs); xfer += proto->writeFieldEnd(); if (obj->data != nullptr) { xfer += proto->writeFieldBegin("data", apache::thrift::protocol::T_STRUCT, 3); @@ -278,7 +278,7 @@ uint32_t Cpp2Ops<::nebula::ExecutionResponse>::serializedSize( ::nebula::ErrorCode>::serializedSize(*proto, obj->errorCode); xfer += proto->serializedFieldSize("latency_in_us", apache::thrift::protocol::T_I64, 2); xfer += ::apache::thrift::detail::pm:: - protocol_methods<::apache::thrift::type_class::integral, int32_t>::serializedSize( + protocol_methods<::apache::thrift::type_class::integral, int64_t>::serializedSize( *proto, obj->latencyInUs); if (obj->data != nullptr) { xfer += proto->serializedFieldSize("data", apache::thrift::protocol::T_STRUCT, 3); @@ -316,7 +316,7 @@ uint32_t Cpp2Ops<::nebula::ExecutionResponse>::serializedSizeZC( ::nebula::ErrorCode>::serializedSize(*proto, obj->errorCode); xfer += proto->serializedFieldSize("latency_in_us", apache::thrift::protocol::T_I64, 2); xfer += ::apache::thrift::detail::pm:: - protocol_methods<::apache::thrift::type_class::integral, int32_t>::serializedSize( + protocol_methods<::apache::thrift::type_class::integral, int64_t>::serializedSize( *proto, obj->latencyInUs); if (obj->data != nullptr) { xfer += proto->serializedFieldSize("data", apache::thrift::protocol::T_STRUCT, 3); diff --git a/src/common/graph/Response.h b/src/common/graph/Response.h index 51ad260240d..ba97cb29ce2 100644 --- a/src/common/graph/Response.h +++ b/src/common/graph/Response.h @@ -468,7 +468,7 @@ struct ExecutionResponse { } ErrorCode errorCode{ErrorCode::SUCCEEDED}; - int32_t latencyInUs{0}; + int64_t latencyInUs{0}; std::unique_ptr data{nullptr}; std::unique_ptr spaceName{nullptr}; std::unique_ptr errorMsg{nullptr};