~linuxjedi/drizzle/trunk-bug-667053

« back to all changes in this revision

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

  • Committer: brian
  • Date: 2008-06-25 05:29:13 UTC
  • Revision ID: brian@localhost.localdomain-20080625052913-6upwo0jsrl4lnapl
clean slate

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef HA_INNODB_PROTOTYPES_H
 
2
#define HA_INNODB_PROTOTYPES_H
 
3
 
 
4
#ifndef UNIV_HOTBACKUP
 
5
 
 
6
#include "univ.i" /* ulint, uint */
 
7
#include "m_ctype.h" /* CHARSET_INFO */
 
8
 
 
9
/* Prototypes for global functions in ha_innodb.cc that are called by
 
10
InnoDB's C-code. */
 
11
 
 
12
/*************************************************************************
 
13
Wrapper around MySQL's copy_and_convert function, see it for
 
14
documentation. */
 
15
 
 
16
ulint
 
17
innobase_convert_string(
 
18
/*====================*/
 
19
        void*           to,
 
20
        ulint           to_length,
 
21
        CHARSET_INFO*   to_cs,
 
22
        const void*     from,
 
23
        ulint           from_length,
 
24
        CHARSET_INFO*   from_cs,
 
25
        uint*           errors);
 
26
 
 
27
/*********************************************************************
 
28
Display an SQL identifier. */
 
29
 
 
30
void
 
31
innobase_print_identifier(
 
32
/*======================*/
 
33
        FILE*           f,      /* in: output stream */
 
34
        trx_t*          trx,    /* in: transaction */
 
35
        ibool           table_id,/* in: TRUE=print a table name,
 
36
                                FALSE=print other identifier */
 
37
        const char*     name,   /* in: name to print */
 
38
        ulint           namelen);/* in: length of name */
 
39
 
 
40
/**********************************************************************
 
41
Returns true if the thread is the replication thread on the slave
 
42
server. Used in srv_conc_enter_innodb() to determine if the thread
 
43
should be allowed to enter InnoDB - the replication thread is treated
 
44
differently than other threads. Also used in
 
45
srv_conc_force_exit_innodb(). */
 
46
 
 
47
ibool
 
48
thd_is_replication_slave_thread(
 
49
/*============================*/
 
50
                        /* out: true if thd is the replication thread */
 
51
        void*   thd);   /* in: thread handle (THD*) */
 
52
 
 
53
/**********************************************************************
 
54
Returns true if the transaction this thread is processing has edited
 
55
non-transactional tables. Used by the deadlock detector when deciding
 
56
which transaction to rollback in case of a deadlock - we try to avoid
 
57
rolling back transactions that have edited non-transactional tables. */
 
58
 
 
59
ibool
 
60
thd_has_edited_nontrans_tables(
 
61
/*===========================*/
 
62
                        /* out: true if non-transactional tables have
 
63
                        been edited */
 
64
        void*   thd);   /* in: thread handle (THD*) */
 
65
 
 
66
#endif
 
67
#endif