mirror of
https://github.com/MariaDB/server.git
synced 2025-01-19 21:42:35 +01:00
fabb334bfe
I forgot to check in some new files: lock0priv.h lock0priv.ic lock0iter.c lock0iter.h
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: */
|