MI_LOCK_TYPE mi_scan_locktype(MI_AM_SCAN_DESC *scanDesc);
If the access method supports locking, use the return value from this function to determine whether you need to lock an object during am_getnext.
MI_LCK_S indicates a shared lock on the table.
MI_LCK_X indicates an exclusive lock on the table.
MI_LCK_IS_S indicates an intent-shared lock on the table and shared lock on the row.
MI_LCK_IX_X indicates intent-exclusive lock on the table and exclusive lock on the row.
MI_LCK_SIX_X indicates an intent-shared exclusive lock on the table and an exclusive lock on the row.
See the descriptions of: