~ubuntu-branches/ubuntu/lucid/mysql-dfsg-5.1/lucid-updates

« back to all changes in this revision

Viewing changes to storage/innobase/include/lock0lock.h

  • Committer: Package Import Robot
  • Author(s): Seth Arnold
  • Date: 2013-04-18 17:04:15 UTC
  • mfrom: (1.2.3)
  • Revision ID: package-import@ubuntu.com-20130418170415-0ogqujl7eqweolxq
Tags: 5.1.69-0ubuntu0.10.04.1
* SECURITY UPDATE: Update to 5.1.69 to fix security issues (LP: #1170516)
  - http://www.oracle.com/technetwork/topics/security/cpuapr2013-1899555.html

Show diffs side-by-side

added added

removed removed

Lines of Context:
685
685
                                remains set when the waiting lock is granted,
686
686
                                or if the lock is inherited to a neighboring
687
687
                                record */
 
688
#define LOCK_CONV_BY_OTHER 4096 /* this bit is set when the lock is created
 
689
                                by other transaction */
 
690
/* Checks if this is a waiting lock created by lock->trx itself.
 
691
@param type_mode lock->type_mode
 
692
@return whether it is a waiting lock belonging to lock->trx */
 
693
#define lock_is_wait_not_by_other(type_mode) \
 
694
        ((type_mode & (LOCK_CONV_BY_OTHER | LOCK_WAIT)) == LOCK_WAIT)
688
695
 
689
696
/* When lock bits are reset, the following flags are available: */
690
697
#define LOCK_RELEASE_WAIT       1