mirror of
https://github.com/MariaDB/server.git
synced 2025-01-19 05:22:25 +01:00
31dffd10c0
I forgot to check in some new files: lock0priv.h lock0priv.ic lock0iter.c lock0iter.h storage/innobase/include/lock0iter.h: BitKeeper file /home/tsmith/m/bk/inno/jul24/51/storage/innobase/include/lock0iter.h storage/innobase/include/lock0priv.h: BitKeeper file /home/tsmith/m/bk/inno/jul24/51/storage/innobase/include/lock0priv.h storage/innobase/include/lock0priv.ic: BitKeeper file /home/tsmith/m/bk/inno/jul24/51/storage/innobase/include/lock0priv.ic storage/innobase/lock/lock0iter.c: BitKeeper file /home/tsmith/m/bk/inno/jul24/51/storage/innobase/lock/lock0iter.c
32 lines
831 B
C
32 lines
831 B
C
/******************************************************
|
|
Lock module internal inline methods.
|
|
|
|
(c) 2007 Innobase Oy
|
|
|
|
Created July 16, 2007 Vasil Dimov
|
|
*******************************************************/
|
|
|
|
/* This file contains only methods which are used in
|
|
lock/lock0* files, other than lock/lock0lock.c.
|
|
I.e. lock/lock0lock.c contains more internal inline
|
|
methods but they are used only in that file. */
|
|
|
|
#ifndef LOCK_MODULE_IMPLEMENTATION
|
|
#error Do not include lock0priv.ic outside of the lock/ module
|
|
#endif
|
|
|
|
/*************************************************************************
|
|
Gets the type of a lock. */
|
|
UNIV_INLINE
|
|
ulint
|
|
lock_get_type(
|
|
/*==========*/
|
|
/* out: LOCK_TABLE or LOCK_REC */
|
|
const lock_t* lock) /* in: lock */
|
|
{
|
|
ut_ad(lock);
|
|
|
|
return(lock->type_mode & LOCK_TYPE_MASK);
|
|
}
|
|
|
|
/* vim: set filetype=c: */
|