MySQL NDB Cluster API Developer Guide NdbOperation::LockMode

Description.  This type describes the lock mode used when performing a read operation.

Enumeration values.  Possible values for this type are shown, along with descriptions, in the following table:

Table 2.55 NdbOperation::LockMode type values and descriptions

Name Description
LM_Read Read with shared lock
LM_Exclusive Read with exclusive lock
LM_CommittedRead Ignore locks; read last committed
LM_SimpleRead Read with shared lock, but release lock directly


There is also support for dirty reads (LM_Dirty), but this is normally for internal purposes only, and should not be used for applications deployed in a production setting.