Documentation Home
MySQL NDB Cluster API Developer Guide
Download this Manual

2.3.30.29 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 2.3.25.5, “NdbOperation::getLockHandle”) passed to the method.

Signature. 

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).


User Comments
Sign Up Login You must be logged in to post a comment.