update weak read timestamp no matter get gts successfuly or not

This commit is contained in:
felix-w15 2023-12-22 16:17:53 +00:00 committed by ob-robot
parent 203156bdc5
commit 54e55ffbde

View File

@ -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);
}