提交 49809d21 编写于 作者: O obdev 提交者: ob-robot

modify the way that slog flush thread gets start ts

上级 f1d066b4
......@@ -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))) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册