use timeout from THIS_WORKER to limit duration of get read tables in query route

This commit is contained in:
hiddenbomb
2024-02-02 21:47:36 +00:00
committed by ob-robot
parent bb91fee82f
commit a4885e52bf
4 changed files with 23 additions and 18 deletions

View File

@ -2384,8 +2384,12 @@ int ObLSTabletService::check_read_info_same(const AllowToReadMgr::AllowToReadInf
return ret;
}
// ATTENTION!
// here we pass VALUE rather than REF for tablet id,
// because tablet id may be from iter, which will be reset in function,
// thus tablet id will be invalid
int ObLSTabletService::get_read_tables(
const common::ObTabletID &tablet_id,
const common::ObTabletID tablet_id,
const int64_t timeout_us,
const int64_t snapshot_version,
ObTabletTableIterator &iter,