[CP] Fixed the inconsistency issue with PDML update index

This commit is contained in:
leslieyuchen
2024-02-09 02:36:46 +00:00
committed by ob-robot
parent 10f550d05a
commit a3cfebe92e
2 changed files with 17 additions and 1 deletions

View File

@ -1026,6 +1026,13 @@ int ObDMLService::lock_row(const ObDASLockCtDef &dlock_ctdef,
stored_row);
}
/*
* Note: During the update process,
* ObDMLService::check_row_whether_changed() and ObDMLService::update_row() must be executed together
* within a single iteration,
* because the update_row process relies on check_row_whether_changed to determine
* whether the new and old values of the row being updated have changed.
**/
int ObDMLService::update_row(const ObUpdCtDef &upd_ctdef,
ObUpdRtDef &upd_rtdef,
const ObDASTabletLoc *old_tablet_loc,