[MDS] fix thread deadlock between DAG and tablet and mds_table

This commit is contained in:
fengdeyiji
2023-08-17 09:40:35 +00:00
committed by ob-robot
parent a5ef36f579
commit 9b01ed202d
27 changed files with 269 additions and 227 deletions

View File

@ -36,7 +36,7 @@ int BufferCtxNode::serialize(char *buf, const int64_t buf_len, int64_t &pos) con
MDS_TG(10_ms);
if (OB_NOT_NULL(ctx_)) {
// 序列化时,如果ctx不为空,那么其类型必须是有效的,这里防御一下,否则反序列化的报错会增加排查难度
OB_ASSERT(ctx_->get_binding_type_id() != INVALID_VALUE);
MDS_ASSERT(ctx_->get_binding_type_id() != INVALID_VALUE);
int64_t type_id = ctx_->get_binding_type_id();
if (MDS_FAIL(serialization::encode(buf, buf_len, pos, type_id))) {
MDS_LOG(ERROR, "serialize buffer ctx id failed", KR(ret), K(type_id));