[CP] [Bugfix]OB-Hbase use put interface

This commit is contained in:
WeiXinChan
2024-03-04 09:14:48 +00:00
committed by ob-robot
parent b607a241e7
commit 1c7536f444

View File

@ -1771,6 +1771,8 @@ int ObTableCtx::get_related_tablet_id(const share::schema::ObTableSchema &index_
check insert up operation can use put implement or not check insert up operation can use put implement or not
1. can not have any index. 1. can not have any index.
2. all column must be filled. 2. all column must be filled.
3. ob-hbase use put cause CDC has supported
4. tableapi with full binlog image can not use put
*/ */
int ObTableCtx::check_insert_up_can_use_put(bool &use_put) int ObTableCtx::check_insert_up_can_use_put(bool &use_put)
{ {
@ -1812,8 +1814,11 @@ int ObTableCtx::check_insert_up_can_use_put(bool &use_put)
} }
} }
if (OB_SUCC(ret) && can_use_put && !is_total_quantity_log()) { if (OB_SUCC(ret) && can_use_put) {
use_put = true; use_put = true;
if (!is_htable() && is_total_quantity_log()) { // tableapi with full binlog image can not use put
use_put = false;
}
} }
return ret; return ret;