Optimize snapshot acquiring when read write statement is spliting

This commit is contained in:
obdev
2023-08-02 09:12:28 +00:00
committed by ob-robot
parent 66f7bb0ffd
commit 4643425ad2
6 changed files with 17 additions and 4 deletions

View File

@ -444,6 +444,7 @@ int ObMultiVersionGarbageCollector::study_min_unallocated_WRS(
if (OB_FAIL(MTL(transaction::ObTransService*)->get_weak_read_snapshot_version(
-1, // system variable : max read stale time for user
false,
min_unallocated_WRS))) {
MVCC_LOG(WARN, "fail to get weak read snapshot", K(ret));
if (OB_REPLICA_NOT_READABLE == ret) {