Interm Result Management is Splitted to Tenants

This commit is contained in:
obdev
2023-10-19 06:39:26 +00:00
committed by ob-robot
parent c72190a2c0
commit a68da2aa9c
17 changed files with 249 additions and 198 deletions

View File

@ -81,8 +81,10 @@ int ObDtlLocalChannel::send_shared_message(ObDtlLinkedBuffer *&buf)
is_first = buf->is_data_msg() && 1 == buf->seq_no();
is_eof = buf->is_eof();
if (buf->is_data_msg() && buf->use_interm_result()) {
if (OB_FAIL(ObDTLIntermResultManager::process_interm_result(buf, peer_id_))) {
LOG_WARN("fail to process internal result", K(ret));
MTL_SWITCH(buf->tenant_id()) {
if (OB_FAIL(MTL(ObDTLIntermResultManager*)->process_interm_result(buf, peer_id_))) {
LOG_WARN("fail to process internal result", K(ret));
}
}
} else if (OB_FAIL(DTL.get_channel(peer_id_, chan))) {
int tmp_ret = ret;