From 1c7536f4447807d0bee8c47fbf4da1ce2ad8691a Mon Sep 17 00:00:00 2001 From: WeiXinChan Date: Mon, 4 Mar 2024 09:14:48 +0000 Subject: [PATCH] [CP] [Bugfix]OB-Hbase use put interface --- src/observer/table/ob_table_context.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/observer/table/ob_table_context.cpp b/src/observer/table/ob_table_context.cpp index a836648788..fe8a9c0fad 100644 --- a/src/observer/table/ob_table_context.cpp +++ b/src/observer/table/ob_table_context.cpp @@ -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 1. can not have any index. 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) { @@ -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; + if (!is_htable() && is_total_quantity_log()) { // tableapi with full binlog image can not use put + use_put = false; + } } return ret;