cambyzju commented on code in PR #38724:
URL: https://github.com/apache/doris/pull/38724#discussion_r1700006948
##########
be/src/common/status.cpp:
##########
@@ -34,6 +34,15 @@ void Status::to_thrift(TStatus* s) const {
// << "The error code has to > 0 because TStatusCode need it > 0,
it's actual value is "
// << _code;
s->status_code = (int16_t)_code > 0 ? (TStatusCode::type)_code :
TStatusCode::INTERNAL_ERROR;
+
+ if (_code == ErrorCode::VERSION_ALREADY_MERGED) {
//Status::Error<VERSION_ALREADY_MERGED>
+ s->status_code = TStatusCode::OLAP_ERR_VERSION_ALREADY_MERGED;
+ }
Review Comment:
else if (_code == ErrorCode::TABLE_NOT_FOUND) {
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]