~drizzle-developers/ubuntu/karmic/drizzle/ppa

« back to all changes in this revision

Viewing changes to plugin/innobase/handler/ha_innodb.h

  • Committer: Monty Taylor
  • Date: 2010-11-24 18:44:57 UTC
  • mfrom: (1308.1.31 trunk)
  • Revision ID: mordred@inaugust.com-20101124184457-qd6jvoe2wgnvl3yq
Tags: 2010.11.04-0ubuntu1~karmic1
* New upstream release.
* Turn off -Werror for packaging builds. (Closes: #602662)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*****************************************************************************
2
2
 
3
 
Copyright (c) 2000, 2009, MySQL AB & Innobase Oy. All Rights Reserved.
 
3
Copyright (c) 2000, 2010, MySQL AB & Innobase Oy. All Rights Reserved.
4
4
 
5
5
This program is free software; you can redistribute it and/or modify it under
6
6
the terms of the GNU General Public License as published by the Free Software
31
31
#include <drizzled/plugin/transactional_storage_engine.h>
32
32
 
33
33
using namespace drizzled;
 
34
 
 
35
/* Structure defines translation table between mysql index and innodb
 
36
index structures */
 
37
typedef struct innodb_idx_translate_struct {
 
38
        ulint           index_count;    /*!< number of valid index entries
 
39
                                        in the index_mapping array */
 
40
        ulint           array_size;     /*!< array size of index_mapping */
 
41
        dict_index_t**  index_mapping;  /*!< index pointer array directly
 
42
                                        maps to index in Innodb from MySQL
 
43
                                        array index */
 
44
} innodb_idx_translate_t;
 
45
 
34
46
/** InnoDB table share */
35
47
typedef struct st_innobase_share {
36
48
        THR_LOCK        lock;           /*!< MySQL lock protecting
40
52
                                        incremented in get_share()
41
53
                                        and decremented in free_share() */
42
54
        void*           table_name_hash;/*!< hash table chain node */
 
55
        innodb_idx_translate_t  idx_trans_tbl;  /*!< index translation
 
56
                                                table between MySQL and
 
57
                                                Innodb */
43
58
 
44
59
        st_innobase_share(const char *arg) :
45
60
          use_count(0)
100
115
        UNIV_INTERN ulint innobase_reset_autoinc(uint64_t auto_inc);
101
116
        UNIV_INTERN ulint innobase_get_autoinc(uint64_t* value);
102
117
        ulint innobase_update_autoinc(uint64_t  auto_inc);
103
 
        UNIV_INTERN ulint innobase_initialize_autoinc();
 
118
        UNIV_INTERN void innobase_initialize_autoinc();
104
119
        UNIV_INTERN dict_index_t* innobase_get_index(uint keynr);
105
 
        UNIV_INTERN uint64_t innobase_get_int_col_max_value(const Field* field);
106
120
 
107
121
        /* Init values for the class: */
108
122
 public: