diff --git a/src/clog/ob_log_archive_and_restore_driver.cpp b/src/clog/ob_log_archive_and_restore_driver.cpp index ca7c1df91..ed0b18faf 100644 --- a/src/clog/ob_log_archive_and_restore_driver.cpp +++ b/src/clog/ob_log_archive_and_restore_driver.cpp @@ -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(round_cost_time); + int32_t sleep_ts = ARCHIVE_AND_RESTORE_STATE_DRIVER_INTERVAL - static_cast(round_cost_time); if (sleep_ts < 0) { sleep_ts = 0; } diff --git a/src/clog/ob_log_archive_and_restore_driver.h b/src/clog/ob_log_archive_and_restore_driver.h index 5b3434732..6496fbfdd 100644 --- a/src/clog/ob_log_archive_and_restore_driver.h +++ b/src/clog/ob_log_archive_and_restore_driver.h @@ -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_;