[TABLELOCK] fix several bugs about timeout in tablelock

This commit is contained in:
obdev
2024-02-10 05:34:25 +00:00
committed by ob-robot
parent 0b4699b3e9
commit 0c56e628e0
18 changed files with 220 additions and 161 deletions

View File

@ -56,6 +56,7 @@ int MockObAccessService::insert_rows(
tablet_id,
ObStoreAccessType::MODIFY,
dml_param,
dml_param.timeout_,
tx_desc,
tablet_handle,
ctx_guard))) {

View File

@ -526,7 +526,7 @@ int ObTxNode::read(const ObTxReadSnapshot &snapshot,
OZ(txs_.get_read_store_ctx(snapshot, false, 5000ll * 1000, read_store_ctx));
// HACK, refine: mock LS's each member in some way
read_store_ctx.mvcc_acc_ctx_.tx_table_guards_.tx_table_guard_.init(&fake_tx_table_);
read_store_ctx.mvcc_acc_ctx_.abs_lock_timeout_ = ObTimeUtility::current_time() + 5000ll * 1000;
read_store_ctx.mvcc_acc_ctx_.abs_lock_timeout_ts_ = ObTimeUtility::current_time() + 5000ll * 1000;
blocksstable::ObDatumRow row;
{
ObTableIterParam iter_param;