MySQL NDB Cluster API Developer Guide NdbTransaction::unlock()

Description.  This method creates an unlock operation on the current transaction; when executed, the unlock operation removes the lock referenced by the NdbLockHandle (see Section, “NdbOperation::getLockHandle”) passed to the method.


const NdbOperation* unlock
      const NdbLockHandle* lockHandle,
      NdbOperation::AbortOption ao = NdbOperation::DefaultAbortOption

Parameters.  A pointer to a lock handle; in addition, optionally, an AbortOption value ao.

In the event that the unlock operation fails—for example, due to the row already being unlocked—the AbortOption specifies how this is handled, the default being that errors cause transactions to abort.

Return value.  A pointer to an NdbOperation (the unlock operation created).