From ab00790f639d399eabd7b42922bf14dadd062478 Mon Sep 17 00:00:00 2001 From: hf0 Date: Fri, 20 Aug 2021 10:33:11 +0800 Subject: [PATCH] fix NOP log submit_timestamp fallback issue during reconfirm --- src/clog/ob_log_reconfirm.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/clog/ob_log_reconfirm.cpp b/src/clog/ob_log_reconfirm.cpp index be482dc308..2e85c01d02 100644 --- a/src/clog/ob_log_reconfirm.cpp +++ b/src/clog/ob_log_reconfirm.cpp @@ -832,6 +832,10 @@ int ObLogReconfirm::confirm_log_() const uint64_t new_start_id = sw_->get_start_id(); if (new_start_id > next_id_) { next_id_ = new_start_id; + // When next_id_ is inceased, last_ts_ also need update + // Or later NOP log's submit_timestamp may fallback + const int64_t last_submit_ts = sw_->get_last_submit_timestamp(); + (void)try_update_last_ts_(last_submit_ts); CLOG_LOG(INFO, "there may execute a rebuild operation in\ leader reconfirm", -- GitLab