提交 a56ffb28 编写于 作者: L LINxiansheng 提交者: wangzelin.wzl

修复冷partition写checkpoint日志的频率控制

上级 0df13a57
......@@ -343,9 +343,9 @@ int ObPartitionLoopWorker::gene_checkpoint_()
} else if (last_max_trans_version < max_trans_version) {
ATOMIC_STORE(&last_max_trans_version_, max_trans_version);
} else if (last_max_trans_version == max_trans_version) {
if (last_checkpoint <= max_trans_version ||
((cur_checkpoint - last_checkpoint_value_) > COLD_PARTITION_CHECKPOINT_INTERVAL &&
REACH_COUNT_PER_SEC(COLD_PARTITION_CHECKPOINT_PS_LIMIT))) {
if (last_checkpoint <= max_trans_version
|| ((cur_checkpoint - last_checkpoint_value_) > COLD_PARTITION_CHECKPOINT_INTERVAL
&& EXECUTE_COUNT_PER_SEC(COLD_PARTITION_CHECKPOINT_PS_LIMIT))) {
if (OB_FAIL(write_checkpoint_(cur_checkpoint))) {
STORAGE_LOG(WARN, "write checkpoint failed", K(ret), K_(pkey), K(cur_checkpoint));
} else {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册