[FEAT MERGE] merge transfer
Co-authored-by: wxhwang <wxhwang@126.com> Co-authored-by: godyangfight <godyangfight@gmail.com> Co-authored-by: Tyshawn <tuyunshan@gmail.com>
This commit is contained in:
@ -333,7 +333,7 @@ int ObCandiTabletLoc::get_selected_replica(ObRoutePolicy::CandidateReplica &repl
|
||||
}
|
||||
|
||||
int ObCandiTabletLoc::set_part_loc_with_only_readable_replica(const ObObjectID &partition_id,
|
||||
const ObObjectID &first_level_part_id,
|
||||
const ObObjectID &first_level_part_id,
|
||||
const common::ObTabletID &tablet_id,
|
||||
const ObLSLocation &partition_location)
|
||||
{
|
||||
@ -343,7 +343,7 @@ int ObCandiTabletLoc::set_part_loc_with_only_readable_replica(const ObObjectID &
|
||||
LOG_ERROR("partition location has not been set yet, but replica idx has been selected",
|
||||
K(ret), K(*this), K(partition_location));
|
||||
} else if (OB_FAIL(opt_tablet_loc_.assign_with_only_readable_replica(partition_id,
|
||||
first_level_part_id,
|
||||
first_level_part_id,
|
||||
tablet_id,
|
||||
partition_location))) {
|
||||
LOG_WARN("fail to assign partition location with only readable replica",
|
||||
|
||||
@ -1348,6 +1348,8 @@ int ObTableLocation::get_is_weak_read(const ObDMLStmt &dml_stmt,
|
||||
dml_stmt.get_query_ctx()->is_contain_select_for_update_ ||
|
||||
dml_stmt.get_query_ctx()->is_contain_inner_table_) {
|
||||
is_weak_read = false;
|
||||
} else if (!MTL_IS_PRIMARY_TENANT()) {
|
||||
is_weak_read = true;
|
||||
} else {
|
||||
ObConsistencyLevel consistency_level = INVALID_CONSISTENCY;
|
||||
ObTxConsistencyType trans_consistency_type = ObTxConsistencyType::INVALID;
|
||||
|
||||
Reference in New Issue
Block a user