patch code to open source branch

This commit is contained in:
dx0
2021-07-29 21:21:12 +08:00
committed by wangzelin.wzl
parent 8a519477bb
commit c9521097c9
10 changed files with 62 additions and 17 deletions

View File

@ -562,7 +562,9 @@ int ObPartitionLoopWorker::set_replay_checkpoint(const int64_t checkpoint)
const int64_t last_checkpoint = ATOMIC_LOAD(&last_checkpoint_);
const int64_t NOTICE_THRESHOLD = 3 * 1000 * 1000;
if (last_checkpoint > 0 && checkpoint - last_checkpoint > NOTICE_THRESHOLD) {
STORAGE_LOG(INFO, "replay checkpoint updated", K_(pkey), K(checkpoint), K(*this));
if (EXECUTE_COUNT_PER_SEC(10)) {
STORAGE_LOG(INFO, "replay checkpoint updated", K_(pkey), K(checkpoint), K(*this));
}
}
inc_update(&last_checkpoint_, checkpoint);
} else {