From 49809d219c354e57af0e3b70dbee3b2a632e75e8 Mon Sep 17 00:00:00 2001 From: obdev Date: Thu, 2 Mar 2023 17:44:22 +0000 Subject: [PATCH] modify the way that slog flush thread gets start ts --- src/share/redolog/ob_log_file_handler.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/share/redolog/ob_log_file_handler.cpp b/src/share/redolog/ob_log_file_handler.cpp index 258c1e7df..3c2bd55f1 100644 --- a/src/share/redolog/ob_log_file_handler.cpp +++ b/src/share/redolog/ob_log_file_handler.cpp @@ -11,7 +11,6 @@ */ #define USING_LOG_PREFIX COMMON -#include "common/ob_clock_generator.h" #include "lib/allocator/ob_malloc.h" #include "lib/oblog/ob_log.h" #include "lib/utility/ob_tracepoint.h" @@ -393,7 +392,7 @@ int ObLogFileHandler::normal_retry_write(void *buf, int64_t size, int64_t offset } else { int64_t retry_cnt = 0; int64_t write_size = 0; - const int64_t start_ts = ObClockGenerator::getClock(); + const int64_t start_ts = ObTimeUtility::current_time(); ATOMIC_STORE(&pwrite_ts_, start_ts); do { if (OB_FAIL(THE_IO_DEVICE->pwrite(io_fd_, offset, size, buf, write_size))) { -- GitLab