提交 eb18e0ba 编写于 作者: O obdev 提交者: wangzelin.wzl

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

上级 faf118de
......@@ -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));
......
......@@ -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_));
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册