* fix typo

* fix archive
This commit is contained in:
DAYC 2021-11-26 14:18:07 +08:00 committed by GitHub
parent 4038374587
commit d467ca3d3f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -221,7 +221,7 @@ void ObLogArchiveAndRestoreDriver::state_driver_loop()
}
const int64_t round_cost_time = ObTimeUtility::current_time() - start_ts;
int32_t sleep_ts = ARCHVIE_AND_RESTORE_STATE_DRIVER_INTERVAL - static_cast<const int32_t>(round_cost_time);
int32_t sleep_ts = ARCHIVE_AND_RESTORE_STATE_DRIVER_INTERVAL - static_cast<const int32_t>(round_cost_time);
if (sleep_ts < 0) {
sleep_ts = 0;
}

View File

@ -42,7 +42,7 @@ private:
const int64_t CLOG_CHECK_RESTORE_PROGRESS_INTERVAL = 2L * 1000 * 1000LL;
const int64_t CHECK_LOG_ARCHIVE_CHECKPOINT_INTERVAL = 1 * 1000 * 1000LL; // 1s
const int64_t CLEAR_TRANS_AFTER_RESTORE_INTERVAL = 5 * 1000 * 1000LL; // 5s
const int64_t ARCHVIE_AND_RESTORE_STATE_DRIVER_INTERVAL = 500 * 1000LL; // 500ms
const int64_t ARCHIVE_AND_RESTORE_STATE_DRIVER_INTERVAL = 500 * 1000LL; // 500ms
private:
bool is_inited_;
storage::ObPartitionService* partition_service_;