[CP] modify the process of cleaning dirty trans context which is commited

This commit is contained in:
obdev
2022-06-21 10:59:36 +08:00
committed by wangzelin.wzl
parent faf118de7e
commit eb18e0ba1b
2 changed files with 2 additions and 2 deletions

View File

@ -993,7 +993,7 @@ int ObPGSSTableMgr::get_clean_out_log_ts(ObIArray<int64_t> &clean_out_log_ts)
int64_t last_log_ts = -1;
// duplicate log ts may exist, need to remove duplicate
for (int64_t i = 0; OB_SUCC(ret) && i < log_ts_array.count(); i++) {
if (log_ts_array.at(i) < functor.get_min_complement_log_ts()) {
if (log_ts_array.at(i) <= functor.get_min_complement_log_ts()) {
if (last_log_ts != log_ts_array.at(i)) {
if (OB_FAIL(clean_out_log_ts.push_back(log_ts_array.at(i)))) {
LOG_WARN("failed to push back log ts", K(ret));

View File

@ -6941,7 +6941,7 @@ int ObPGStorage::get_max_cleanout_log_ts(ObIArray<int64_t> &sstable_cleanout_log
last_replay_log_ts = meta_->storage_info_.get_data_info().get_last_replay_log_ts();
}
for (int64_t i = 0; OB_SUCC(ret) && i < log_ts_array.count(); i++) {
if (log_ts_array.at(i) < last_replay_log_ts) {
if (log_ts_array.at(i) <= last_replay_log_ts) {
if (OB_FAIL(sstable_cleanout_log_ts.push_back(log_ts_array.at(i)))) {
LOG_WARN("failed to push back log ts", K(ret), K(pkey_));
}