cherry-pick from 3_1_x_release to 3.1_opensource_release

This commit is contained in:
obdev
2021-07-15 18:27:13 +08:00
committed by wangzelin.wzl
parent 2aa1574bc6
commit 51ee0c55b2
19 changed files with 246 additions and 108 deletions

View File

@ -4038,7 +4038,7 @@ int ObPartitionGroup::get_curr_clog_info_(
if (OB_FAIL(get_base_storage_info_(clog_info))) {
STORAGE_LOG(WARN, "fail to get base storage info", K(ret), K(pkey_));
} else if (0 == clog_info.get_last_replay_log_id()) {
// skip fetching log_archive_status
// do nothing
} else if (ObServerConfig::get_instance().enable_log_archive && !is_sys_tenant && !is_restore &&
src_cluster_id == self_cluster_id) {
// Only the requests from the database itself need to obtain the archive point if the archive is enabled.