[CP] Fix direct load px write not master

This commit is contained in:
suz-yang
2023-12-26 12:13:12 +00:00
committed by ob-robot
parent 0121227aeb
commit 9c17fc25db
4 changed files with 33 additions and 4 deletions

View File

@ -2697,6 +2697,8 @@ int ObLSTabletService::direct_insert_rows(
ObTableLoadStore store(table_ctx);
if (OB_FAIL(store.init())) {
LOG_WARN("fail to init store", KR(ret));
} else if (OB_FAIL(store.px_check_for_write(tablet_id))) {
LOG_WARN("fail to check for write", KR(ret), K(tablet_id));
}
while (OB_SUCC(ret) && OB_SUCC(get_next_rows(row_iter, rows, row_count))) {