From d467ca3d3f6caf90222ae7c95c33ae82ce9907c1 Mon Sep 17 00:00:00 2001 From: DAYC Date: Fri, 26 Nov 2021 14:18:07 +0800 Subject: [PATCH] Fix typo #445 (#587) * fix typo * fix archive --- src/clog/ob_log_archive_and_restore_driver.cpp | 2 +- src/clog/ob_log_archive_and_restore_driver.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/clog/ob_log_archive_and_restore_driver.cpp b/src/clog/ob_log_archive_and_restore_driver.cpp index ca7c1df91a..ed0b18fafb 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 5b3434732a..6496fbfddb 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_; -- GitLab