4.1 rm ddl_tracing serialize related code
This commit is contained in:
@ -1811,8 +1811,6 @@ int ObConstraintTask::serialize_params_to_message(char *buf, const int64_t buf_l
|
||||
LOG_WARN("fail to serialize task version", K(ret), K(task_version_));
|
||||
} else if (OB_FAIL(alter_table_arg_.serialize(buf, buf_len, pos))) {
|
||||
LOG_WARN("serialize table arg failed", K(ret));
|
||||
} else if (OB_FAIL(ddl_tracing_.serialize(buf, buf_len, pos))) {
|
||||
LOG_WARN("fail to serialize ddl_flt_ctx", K(ret));
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
@ -1830,20 +1828,13 @@ int ObConstraintTask::deserlize_params_from_message(const char *buf, const int64
|
||||
LOG_WARN("serialize table failed", K(ret));
|
||||
} else if (OB_FAIL(deep_copy_table_arg(allocator_, tmp_arg, alter_table_arg_))) {
|
||||
LOG_WARN("deep copy table arg failed", K(ret));
|
||||
} else {
|
||||
if (pos < data_len) {
|
||||
if (OB_FAIL(ddl_tracing_.deserialize(buf, data_len, pos))) {
|
||||
LOG_WARN("fail to deserialize ddl_tracing_", K(ret));
|
||||
}
|
||||
}
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
int64_t ObConstraintTask::get_serialize_param_size() const
|
||||
{
|
||||
return alter_table_arg_.get_serialize_size() + serialization::encoded_length_i64(task_version_)
|
||||
+ ddl_tracing_.get_serialize_size();
|
||||
return alter_table_arg_.get_serialize_size() + serialization::encoded_length_i64(task_version_);
|
||||
}
|
||||
|
||||
void ObConstraintTask::flt_set_task_span_tag() const
|
||||
|
||||
Reference in New Issue
Block a user