diff --git a/deps/easy/src/io/easy_negotiation.c b/deps/easy/src/io/easy_negotiation.c index 9d8b22ee4..264b87b21 100644 --- a/deps/easy/src/io/easy_negotiation.c +++ b/deps/easy/src/io/easy_negotiation.c @@ -61,9 +61,9 @@ static int easy_encode_uint64(char *buf, const uint64_t buf_len, int64_t *pos, u } static int easy_encode_uint16(char *buf, const uint64_t buf_len, int64_t *pos, uint16_t val) -{ - int ret = ((NULL != buf) && - ((buf_len - *pos) >= (uint64_t)(sizeof(val)))) ? EASY_OK : EASY_ABORT; +{ + int ret = ((NULL != buf) && + ((buf_len - *pos) >= (uint64_t)(sizeof(val)))) ? EASY_OK : EASY_ABORT; if (EASY_OK == ret) { *(buf + (*pos)++) = (char)((((val) >> 8)) & 0xff); @@ -167,9 +167,9 @@ static int easy_decode_negotiation_msg(easy_negotiation_msg_t *ne_msg, char *rec pos++; //for io thread index *decode_len = pos; - - return ret; -} + + return ret; +} /* * easy negotiation packet format @@ -273,9 +273,9 @@ void net_consume_negotiation_msg(int fd, uint64_t magic) easy_info_log("not negotiation msg ! return!"); } } - - return; -} + + return; +} int easy_send_negotiate_message(easy_connection_t *c) { diff --git a/src/share/schema/ob_partition_sql_helper.cpp b/src/share/schema/ob_partition_sql_helper.cpp index 77d22e79c..e7a99a39a 100644 --- a/src/share/schema/ob_partition_sql_helper.cpp +++ b/src/share/schema/ob_partition_sql_helper.cpp @@ -1459,7 +1459,6 @@ int ObDropIncPartHelper::drop_partition_info() if (OB_SUCC(ret) && inc_part_num > 0) { int64_t affected_rows = 0; if (OB_FAIL(sql_client_.write(exec_tenant_id, part_history_sql.ptr(), affected_rows))) { - ret = OB_ERR_UNEXPECTED; LOG_WARN("execute sql failed", K(ret), K(part_history_sql)); } else if (affected_rows != inc_part_num) { ret = OB_ERR_UNEXPECTED; @@ -1530,7 +1529,6 @@ int ObDropIncSubPartHelper::drop_subpartition_info() if (OB_SUCC(ret) && inc_sub_part_num > 0) { int64_t affected_rows = 0; if (OB_FAIL(sql_client_.write(exec_tenant_id, sub_part_history_sql.ptr(), affected_rows))) { - ret = OB_ERR_UNEXPECTED; LOG_WARN("execute sql failed", K(ret), K(sub_part_history_sql)); } else if (affected_rows != inc_sub_part_num) { ret = OB_ERR_UNEXPECTED;