~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to storage/innobase/include/lock0priv.ic

  • Committer: Stewart Smith
  • Date: 2008-11-21 16:06:07 UTC
  • mto: This revision was merged to the branch mainline in revision 593.
  • Revision ID: stewart@flamingspork.com-20081121160607-n6gdlt013spuo54r
remove mysql_frm_type
and fix engines to return correct value from delete_table when table doesn't exist.
(it should be ENOENT).

Also fix up some tests that manipulated frm files by hand. These tests are no longer valid and will need to be rewritten in the not too distant future.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/******************************************************
 
2
Lock module internal inline methods.
 
3
 
 
4
(c) 2007 Innobase Oy
 
5
 
 
6
Created July 16, 2007 Vasil Dimov
 
7
*******************************************************/
 
8
 
 
9
/* This file contains only methods which are used in
 
10
lock/lock0* files, other than lock/lock0lock.c.
 
11
I.e. lock/lock0lock.c contains more internal inline
 
12
methods but they are used only in that file. */
 
13
 
 
14
#ifndef LOCK_MODULE_IMPLEMENTATION
 
15
#error Do not include lock0priv.ic outside of the lock/ module
 
16
#endif
 
17
 
 
18
/*************************************************************************
 
19
Gets the type of a lock. */
 
20
UNIV_INLINE
 
21
ulint
 
22
lock_get_type_low(
 
23
/*==============*/
 
24
                                /* out: LOCK_TABLE or LOCK_REC */
 
25
        const lock_t*   lock)   /* in: lock */
 
26
{
 
27
        ut_ad(lock);
 
28
 
 
29
        return(lock->type_mode & LOCK_TYPE_MASK);
 
30
}
 
31
 
 
32
/* vim: set filetype=c: */