From 5a8419b560ea6816d630a85a1aea206d8169d035 Mon Sep 17 00:00:00 2001 From: obdev Date: Thu, 8 Feb 2024 07:46:07 +0000 Subject: [PATCH] update weak read timestamp no matter get gts successfuly or not --- src/storage/tx/wrs/ob_ls_wrs_handler.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/storage/tx/wrs/ob_ls_wrs_handler.cpp b/src/storage/tx/wrs/ob_ls_wrs_handler.cpp index 8307bd870..e868d8f7a 100644 --- a/src/storage/tx/wrs/ob_ls_wrs_handler.cpp +++ b/src/storage/tx/wrs/ob_ls_wrs_handler.cpp @@ -148,6 +148,9 @@ int ObLSWRSHandler::generate_ls_weak_read_snapshot_version(ObLS &ls, if (!need_skip) { wrs_version = timestamp; } + } + + if (timestamp.is_valid()) { // Update timestamp forcedly no matter how current ls leaves behind or not; ls_weak_read_ts_.inc_update(timestamp); }