mi_boolean mi_scan_forupdate(MI_AM_SCAN_DESC *scanDesc);
The access method should protect data with the appropriate lock level for update transactions and possibly store user data for the am_update or am_delete purpose function.
To determine the lock level, call the mi_scan_locktype() access function.
MI_TRUE indicates that the query includes a FOR UPDATE clause.
MI_FALSE indicates that the query does not include a FOR UPDATE clause.
See the description of accessor functions mi_scan_locktype() and mi_tab_mode().